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.constantinos
06/28/2022, 8:11 AMstaging-app first and have it open then it doesnt happen.constantinos
06/28/2022, 8:13 AMstaging-app is where the user logins.rp_st
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_st
06/28/2022, 8:15 AMconstantinos
06/28/2022, 8:15 AMrp_st
06/28/2022, 8:15 AM'http://staging-beta.domain.com' as well to allowed originsrp_st
06/28/2022, 8:16 AMconstantinos
06/28/2022, 8:21 AMrp_st
06/28/2022, 8:22 AMconstantinos
06/28/2022, 8:22 AMsessionScope: in the front endconstantinos
06/28/2022, 8:22 AMconstantinos
06/28/2022, 8:23 AMconstantinos
06/28/2022, 8:23 AMconstantinos
06/28/2022, 8:24 AMconstantinos
06/28/2022, 8:25 AMconstantinos
06/28/2022, 8:31 AMrp_st
06/28/2022, 8:33 AM