constantinos
06/28/2022, 8:08 AMAccess to fetch at 'https://staging-auth.domain.com/auth/session/refresh' from origin 'http://staging-beta.domain.com:9000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The 'Access-Control-Allow-Origin' header has a value 'https://staging-app.domain.com' that is not equal to the supplied origin. Have the server send the header with a valid value, or, if an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
staging-beta
is local with custom homain in hosts. staging-app
is in the cloud and thats where the user logins.
Usually happens when I close the browser and then open it directly on staging-beta
locally.staging-app
first and have it open then it doesnt happen.staging
-app is where the user logins.rp
06/28/2022, 8:13 AMconstantinos
06/28/2022, 8:15 AMstaging-auth
is the backend auth api.
I think you meant staging-beta
is the second front end domain. The other is staging-app
where the user logins.rp
06/28/2022, 8:15 AMconstantinos
06/28/2022, 8:15 AMrp
06/28/2022, 8:15 AM'http://staging-beta.domain.com'
as well to allowed originsconstantinos
06/28/2022, 8:21 AMrp
06/28/2022, 8:22 AMconstantinos
06/28/2022, 8:22 AMsessionScope:
in the front endconstantinos
06/28/2022, 8:24 AMrp
06/28/2022, 8:33 AM