{"id":18545256,"date":"2025-07-08T02:41:57","date_gmt":"2025-07-08T02:41:57","guid":{"rendered":"https:\/\/wordpress.org\/support\/?post_type=topic&#038;p=18545256"},"modified":"2025-07-08T04:11:40","modified_gmt":"2025-07-08T04:11:40","slug":"cors-errors-using-cloudfront","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/cors-errors-using-cloudfront\/","title":{"rendered":"CORS errors using cloudfront"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Upgrade of Jetpack plugin from 14.7 to 14.8 causes CORS errors:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Access to script at &#8216;<a href=\"https:\/\/cdn.spelfabet.com.au\/wp-includes\/js\/dist\/script-modules\/interactivity\/index.min.js?ver=55aebb6e0a16726baffb\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/cdn.spelfabet.com.au\/wp-includes\/js\/dist\/script-modules\/interactivity\/index.min.js?ver=55aebb6e0a16726baffb<\/a>&#8216; from origin &#8216;<a href=\"https:\/\/www.spelfabet.com.au\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.spelfabet.com.au<\/a>&#8216; has been blocked by CORS policy: No &#8216;Access-Control-Allow-Origin&#8217; header is present on the requested resource.Understand this error<br \/>make-a-referral\/:815<br \/><br \/>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0GET\u00a0<a href=\"https:\/\/cdn.spelfabet.com.au\/wp-includes\/js\/dist\/script-modules\/interactivity\/index.min.js?ver=55aebb6e0a16726baffb\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/cdn.spelfabet.com.au\/wp-includes\/js\/dist\/script-modules\/interactivity\/index.min.js?ver=55aebb6e0a16726baffb<\/a>\u00a0net::ERR_FAILED 200 (OK)Understand this error<br \/>make-a-referral\/:1 Access to script at &#8216;<a href=\"https:\/\/cdn.spelfabet.com.au\/wp-content\/www.spelfabet.com.au\/plugins\/jetpack\/jetpack_vendor\/automattic\/jetpack-forms\/dist\/modules\/form\/view.js?ver=14.8\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/cdn.spelfabet.com.au\/wp-content\/www.spelfabet.com.au\/plugins\/jetpack\/jetpack_vendor\/automattic\/jetpack-forms\/dist\/modules\/form\/view.js?ver=14.8<\/a>&#8216; from origin &#8216;<a href=\"https:\/\/www.spelfabet.com.au\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.spelfabet.com.au<\/a>&#8216; has been blocked by CORS policy: No &#8216;Access-Control-Allow-Origin&#8217; header is present on the requested resource.Understand this error<br \/>make-a-referral\/:814<br \/><br \/>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0GET\u00a0<a href=\"https:\/\/cdn.spelfabet.com.au\/wp-content\/www.spelfabet.com.au\/plugins\/jetpack\/jetpack_vendor\/automattic\/jetpack-forms\/dist\/modules\/form\/view.js?ver=14.8\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/cdn.spelfabet.com.au\/wp-content\/www.spelfabet.com.au\/plugins\/jetpack\/jetpack_vendor\/automattic\/jetpack-forms\/dist\/modules\/form\/view.js?ver=14.8<\/a>\u00a0net::ERR_FAILED 200 (OK)Understand this error<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I don&#8217;t see any Access-Control-Allow-Origin header in the page request using DevTools (Chrome).<br \/>Thousands of other scripts are getting loaded from the CDN OK with similar destinations, e.g. <br \/><a href=\"https:\/\/cdn.spelfabet.com.au\/wp-includes\/js\/hoverintent-js.min.js?ver=2.2.1\">https:\/\/cdn.spelfabet.com.au\/wp-includes\/js\/hoverintent-js.min.js?ver=2.2.1<\/a><br \/><a href=\"https:\/\/cdn.spelfabet.com.au\/wp-content\/www.spelfabet.com.au\/plugins\/woocommerce\/assets\/js\/frontend\/woocommerce.min.js?ver=9.9.5\">https:\/\/cdn.spelfabet.com.au\/wp-content\/www.spelfabet.com.au\/plugins\/woocommerce\/assets\/js\/frontend\/woocommerce.min.js?ver=9.9.5<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The first request that fails has Request Headers:<br \/>sec-fetch-mode    cors<br \/>sec-fetch-site    same-site<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">whereas the requests that are succeeding have request headers:<br \/>sec-fetch-mode   no-cors<br \/>sec-fetch-site   same-site<\/p>\n","protected":false},"template":"","class_list":["post-18545256","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18545256","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18545256\/revisions"}],"predecessor-version":[{"id":18545311,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18545256\/revisions\/18545311"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18545256"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}