Hi recently i moved to a new project but after done my angular upgrade 20 and standalone i am getting callback issue but actually my local working very fine but test environment is getting this below error
GET /implicit/callback?c…NHi1tOjkPZg19ys6w:1 https:///callback?code=zxV_hsTP5Zwjuo7uUFz…inY&state=YPfRW4u4puyV8Q50q2tp8iJ7j4zi8UPCu9luQWchnJhTLIENHi1tOjkPZg19ys6w 404 (Not Found)
i don’t know whether its an angular upgrade issue or general issue let me know how can i fix and check in my local instead of try in environment
I would check if the callback endpoint exists in prod, since it’s throwing a 404. Could you try navigating to your callback endpoint without any query params to check if the path exists?
Hi @vk-giri thanks for responding i tried https:///implicit/callback without quary prams still i am getting similar error "ERROR : GET https:///implicit/callback 404 (Not Found) . what might be the issue and where to check.
You would need to check on your app end why this page is not being fetched. Since the page should exist before the page can perform the code exchange with Okta.
Hi there @swami,
Welcome to the community!
Being able to run this locally, but not on your test environment, suggests a missing configuration in your test environment’s web server.
SPAs require routing rules when hosting prod builds on a web server. You’ll see the same 404 error on any deep routes, not just in the authentication callback. Dev servers normally handle the routing rules for us, so it’s not something we see during local development.
Check out the resources provided in this response. Your solution depends on your specific web server and environment.
Happy coding!
Hi @alisaduncan Thanks you so much for you response i shared you response to my infra team and asked them to configure . hope it will work ,