Response headers for Easy Auth post to .auth/login/{provider} is not including access-control-allow-origin for the request host and is failing cors checks in browsers

Ryan Noble 15 Reputation points
2026-11-13T16:20:07.3233333+00:00

It seems the options preflight includes the access-control header in the response but the actual post does not. This has taken down the entire feature for our application and anyone relying on it cannot login any more. The browser is showing these logs:
Access to XMLHttpRequest at 'https://testapi.qware.app/.auth/login/google' from origin 'https://test.qware.app' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

POST https://testapi.qware.app/.auth/login/google net::ERR_FAILED 200 (OK)

This issue seems to have started 11/12/2026. Nothing was changed in the application code so I'm assuming this post used to set the access controls for us.

User's imageUser's image

Azure App Service
Azure App Service

Azure App Service is a service used to create and deploy scalable, mission-critical web apps.


1 answer

Sort by: Oldest
  1. Ryan Noble 15 Reputation points
    2026-11-17T20:34:03.31+00:00

    Update: I was able to implement a work around that doesn't disrupt the control flow of authentication. If you use Azure Front Door or API Manager you can ensure the control headers are included in the response. I created a simple forwarding API in APIM that adds the access control headers before returning the user information back to the browser client. This is not ideal, since the application is now tightly dependent on APIM for this feature to continue to work for us without making substantial refactors.

    What I would expect is that Easy Auth honors the CORS settings set for the App Service.

    User's image

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.