0👍
In your Html page from where you are calling this ajax add this
var bankIdAuthenticationRoute = "{{route('bankIdAuthenticationRoute')}}"
var csrf = "{{csrf_token()}}"
And then use both variable in your JS file for that Ajax call.
Source:stackexchange.com