What Happened?
Seeing errors with our site:
Access to fetch at 'https://example.com' from origin 'https://example-xc.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
Environment
- F5® Distributed Cloud Console
- HTTP Load balancer
Resolution/Answer
This CORS policy error appears when trying to access two different domains.
To fix this error, you need to check if the domain name that you have in your load balancer matches the one you have in your origin pool.
Cause
- Trying to access a domain that does not match with the origin pool.
Additional Information