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

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

CORS errors when disabling cache in developer tools

  • 답글 없음
  • 0 이 문제를 만남
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

글에 답글을 달기 위해서는 계정으로 로그인해야만 합니다. 계정이 아직 없다면 새로운 질문을 올려주세요.