Hi, sorry I am a new user and I am not allowed to upload picture in the post. I will try to describe the issue I met by plain text.
My Vue SPA (served by nginx, deployed as container in AWS ECS) stuck at my-application.com/login/callback#id_token=xxx
URL after successfully logging in and it does not proceed with a white page, but I can see requests are sent to get my page content data. There is no error in the Chrome dev console.
I do not think it is an nginx problem: it works fine if I start the nginx container locally. So I guess it has something to do with the domain: only work for localhost. Here is my nginx config (copied to /etc/nginx/conf.d/default.conf in the container) anyway:
server {
listen 80 default_server;
listen [::]:80 default_server;
root /usr/share/nginx/html;
index index.html;
server_name _;
location / {
try_files $uri $uri/ /index.html =404;
}
}
Any idea? Thank you!