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! 🎁

Hilfe durchsuchen

Vorsicht vor Support-Betrug: Wir fordern Sie niemals auf, eine Telefonnummer anzurufen, eine SMS an eine Telefonnummer zu senden oder persönliche Daten preiszugeben. Bitte melden Sie verdächtige Aktivitäten über die Funktion „Missbrauch melden“.

Weitere Informationen

CORS errors when disabling cache in developer tools

  • Keine Antworten
  • 0 haben dieses 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

Sie müssen sich mit Ihrem Benutzerkonto anmelden, um auf Beiträge zu antworten. Bitte stellen Sie eine neue Frage, wenn Sie noch kein Benutzerkonto haben.