{"id":4573,"date":"2026-04-22T23:32:52","date_gmt":"2026-04-22T20:32:52","guid":{"rendered":"https:\/\/fastpixel.io\/?post_type=docs&#038;p=4573"},"modified":"2026-04-22T23:33:14","modified_gmt":"2026-04-22T20:33:14","password":"","slug":"warning-access-to-_-has-been-blocked-by-cors-policy","status":"publish","type":"docs","link":"https:\/\/fastpixel.io\/fr\/docs\/warning-access-to-_-has-been-blocked-by-cors-policy\/","title":{"rendered":"Warning: Access to _ has been blocked by CORS policy"},"content":{"rendered":"<p>When using FastPixel, you might end up in certain cases with a CORS warning that looks like this, depending on your website&#8217;s CORS policy:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Warning: access to <strong>and-the-resource-url-goes-here<\/strong> has been blocked by CORS policy: No \u2018Access-Control-Allow-Origin\u2019 header is present on the requested resource.<\/p>\n<\/blockquote>\n\n\n\n<p><\/p>\n\n\n\n<p>This issue can occur when our CDN tries to serve your website\u2019s resources, but your current CORS policy blocks requests from external sources, including our CDN.<\/p>\n\n\n\n<p><mark style=\"background-color:#ff6900\" class=\"has-inline-color has-palette-color-3-color\">For both solutions, <strong>please consult with your hosting provider on how to implement them.<\/strong><\/mark><\/p>\n\n\n\n<p>A more permissive approach is to add an <code>Access-Control-Allow-Origin<\/code> header to your site as shown below. This will allow requests from any origin:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Access-Control-Allow-Origin: *<\/code><\/pre>","protected":false},"excerpt":{"rendered":"<p>When using FastPixel, you might end up in certain cases with a CORS warning that looks like this, depending on your website&#8217;s CORS policy: Warning: access to and-the-resource-url-goes-here has been blocked by CORS policy: No \u2018Access-Control-Allow-Origin\u2019 header is present on the requested resource. This issue can occur when our CDN tries to serve your website\u2019s [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_uag_custom_page_level_css":"","footnotes":""},"doc_category":[18],"doc_tag":[],"class_list":["post-4573","docs","type-docs","status-publish","hentry","doc_category-troubleshooting"],"blocksy_meta":[],"year_month":"2026-04","word_count":108,"total_views":"11","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"Adrian","author_nicename":"adrian","author_url":"https:\/\/fastpixel.io\/fr\/blog\/author\/adrian\/"},"doc_category_info":[{"term_name":"Troubleshooting","term_url":"https:\/\/fastpixel.io\/fr\/docs-category\/troubleshooting\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"trp-custom-language-flag":false,"betterdocs-category-thumb":false},"uagb_author_info":{"display_name":"Adrian","author_link":"https:\/\/fastpixel.io\/fr\/blog\/author\/adrian\/"},"uagb_comment_info":0,"uagb_excerpt":"When using FastPixel, you might end up in certain cases with a CORS warning that looks like this, depending on your website&#8217;s CORS policy: Warning: access to and-the-resource-url-goes-here has been blocked by CORS policy: No \u2018Access-Control-Allow-Origin\u2019 header is present on the requested resource. This issue can occur when our CDN tries to serve your website\u2019s\u2026","_links":{"self":[{"href":"https:\/\/fastpixel.io\/fr\/wp-json\/wp\/v2\/docs\/4573","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fastpixel.io\/fr\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/fastpixel.io\/fr\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/fastpixel.io\/fr\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/fastpixel.io\/fr\/wp-json\/wp\/v2\/comments?post=4573"}],"version-history":[{"count":2,"href":"https:\/\/fastpixel.io\/fr\/wp-json\/wp\/v2\/docs\/4573\/revisions"}],"predecessor-version":[{"id":4575,"href":"https:\/\/fastpixel.io\/fr\/wp-json\/wp\/v2\/docs\/4573\/revisions\/4575"}],"wp:attachment":[{"href":"https:\/\/fastpixel.io\/fr\/wp-json\/wp\/v2\/media?parent=4573"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/fastpixel.io\/fr\/wp-json\/wp\/v2\/doc_category?post=4573"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/fastpixel.io\/fr\/wp-json\/wp\/v2\/doc_tag?post=4573"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}