Join the Mozilla’s Test Days event from Dec 2–8 to test the new Firefox address bar on Firefox Beta 134 and get a chance to win Mozilla swag vouchers! 🎁

Søg i 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.

Læs mere

CORS errors when disabling cache in developer tools

  • Ingen svar
  • 0 har dette 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

Du skal logge ind på din konto for at svare på et indlæg. Start et nyt spørgsmål, hvis du ikke har en konto endnu.