I have been facing a implicit callback issue in my vue js application.
The below call is failing.
https://<>/implicit/callback?code=UVgwlY1pEIH-7cX4Y2&state=ueTbbN2qxpJGwDtCy2IWrNVSW4xUR4OoQHvT209quCYEw8tDgbrdeZ7iBRWt.
I guess it is not able to handle the callback. I have configured the applications correctly.
The weird thing is its works on my locally hosted application but doesn’t work in server hosted application.
Stuck in this issue for long time.
You need to configure your server hosted application to route all requests to index.html, even errors. Are you deploying to particular cloud provider or using a particular web server?
It has nothing to do with your app itself. It has to do with the webserver it’s hosted on. For example, if you’re using Nginx, you have to make it SPA-aware with settings like the following:
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri /index.html;
}
}