Closed Jaffacakes82 closed 5 years ago
Status Code 200 OK (from ServiceWorker)
Looks like its a Javascript service worker on your page that's poxying and returning the 200 (possibly caching it also)
Super-star, I'm new to React and from your prompt and having a skim through our codebase it's pretty obvious that this is being registered by our React application and cached in the browser.
Thanks for the swift reply.
Disclaimer
I'm not 100% the issue I'm seeing is caused by Kestrel, however as the web server returning the unexpected status code I thought I'd raise this here and see if anyone clever has any bright ideas about what could be causing my issue!
Problem
Our application is a ReactJS/ASP.NET Core web application hosted as a Web App in Azure. We use Okta for authentication and the login process looks like this:
'/api/auth/login'
controller action'/api/auth/login'
invokes challenge and redirects to Okta'/api/auth/login'
to check if user is authenticated then redirects to'/'
to render home pageWhen logging in to the Azure hosted application on Chrome using HTTPS, step 5 above does not redirect to
'/'
and instead the call to'/api/auth/login'
is returning a 200. Nowhere in my controller action do I return a 200 here. This works locally when using chrome and HTTPS so it seems to be isolated to my application running in Azure.I do not experience this issue on any other browser apart from Chrome.
Login action
Expected response when browsing over HTTP
Unexpected response when browsing over HTTPS
I would appreciate any ideas, thanks.