This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

CORS errors when disabling cache in developer tools

  • No replies
  • 0 have this problem
more options

Hello,

When I open the developer tools (using F12) and I check the disable cache checkbox of the network tab, I get CORS errors saying that `Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://<my-resource>. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).`.

From my understanding, since the requests triggering the errors have the `Cache-Control` header set (due to the cache disabling), these requests do not qualify as simple requests (https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#simple_requests). That’s why the server (AWS CloudFront) does not return CORS headers. However, I do not understand why Firefox did not send preflight requests (https://developer.mozilla.org/en-US/docs/Glossary/Preflight_request) in these cases.

Did I miss something? Or am I hitting a bug in Firefox?

Regards

Hello, When I open the developer tools (using F12) and I check the disable cache checkbox of the network tab, I get CORS errors saying that `Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://<my-resource>. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).`. From my understanding, since the requests triggering the errors have the `Cache-Control` header set (due to the cache disabling), these requests do not qualify as simple requests (https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#simple_requests). That’s why the server (AWS CloudFront) does not return CORS headers. However, I do not understand why Firefox did not send preflight requests (https://developer.mozilla.org/en-US/docs/Glossary/Preflight_request) in these cases. Did I miss something? Or am I hitting a bug in Firefox? Regards

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.