Warning: Access to _ has been blocked by CORS policy
< 1 min read
When using FastPixel, you might end up in certain cases with a CORS warning that looks like this, depending on your website’s CORS policy:
Warning: access to and-the-resource-url-goes-here has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
This issue can occur when our CDN tries to serve your website’s resources, but your current CORS policy blocks requests from external sources, including our CDN.
For both solutions, please consult with your hosting provider on how to implement them.
A more permissive approach is to add an Access-Control-Allow-Origin header to your site as shown below. This will allow requests from any origin:
Access-Control-Allow-Origin: *