Free auditStart free
GuideError · Browser

Cross-Origin Request Blocked

Firefox prints Cross-Origin Request Blocked with a Reason line. Match your Reason to its cause and fix, from missing headers to failed preflights and file URLs.

5 min
read
7
sources
Oct 23, 2026
updated
Scaplet Editorial Team
author
In one line

Cross-Origin Request Blocked is Firefox's CORS error. The Reason line after it tells you the cause: a missing or mismatched Access-Control-Allow-Origin header, a failed preflight, a blocked method or header, a redirect, or a request that never reached the server. Match the Reason to the table below, then fix it on the server you call.

30-second check

Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode
01Explained

What the message means

Firefox prints "Cross-Origin Request Blocked" in the console and ends it with a line beginning "Reason:". MDN documents fifteen of these reasons, and each has a different fix, so the Reason line matters more than the headline. The browser enforces the rule, but the server you call usually decides whether the request passes. For the most common reason, a missing Access-Control-Allow-Origin header, start with Access-Control-Allow-Origin. This page covers the whole list.

Most CORS failures cluster in three groups: the response headers are wrong, the preflight request failed, or the request never completed. Work out the group from the Reason, then use the table.

02Explained

Find your Reason

Firefox CORS reasons, causes and fixes
Reason as Firefox prints itWhat went wrongFix
CORS header 'Access-Control-Allow-Origin' missingThe response has no such headerSend the header for your front-end origin
CORS header 'Access-Control-Allow-Origin' does not match 'xyz'Your origin isn't the permitted one, or more than one header was sentInclude your origin, with the scheme, in a single header
Multiple CORS header 'Access-Control-Allow-Origin' not allowedMore than one header came backSend one header with one origin
Credential is not supported if the CORS header 'Access-Control-Allow-Origin' is '*'A credentialed request got the wildcardReturn the requesting origin, or drop credentials on the client
expected 'true' in CORS header 'Access-Control-Allow-Credentials'The server doesn't permit credentialsSet the header to true, or don't request credentials
Did not find method in CORS header 'Access-Control-Allow-Methods'The request method isn't in the list the server allowsUse an allowed method, or add it on the server
missing token 'xyz' in CORS header 'Access-Control-Allow-Headers' from CORS preflight channelThe preflight didn't allow a header you sendAllow that header on the server, or stop sending it
invalid token 'xyz' in CORS header 'Access-Control-Allow-Methods'The response names an unrecognized methodRemove the invalid method name on the server
invalid token 'xyz' in CORS header 'Access-Control-Allow-Headers'The response names an unrecognized headerRemove the invalid header name on the server
CORS preflight channel did not succeedThe preflight couldn't be performedFix the network error, or make sure the code preflights once per connection
CORS request did not succeedThe connection failed at the network or protocol levelCheck DevTools Network, extensions, TLS and mixed content
CORS request external redirect not allowedThe server redirected to a different originCall the new URL directly
CORS request not httpThe URL isn't http or https, often file:///Serve the files from a local server
CORS header 'Origin' cannot be addedFirefox couldn't add the required Origin headerSeen with enhanced-privilege code; rarely a site bug
CORS disabledCORS is turned off in the browserSet the Firefox preference content.cors.disable back to false
03Check it

Preflight failures

MDN says browsers "preflight" requests that could change data on the server: methods other than GET, HEAD or POST, requests with headers outside the CORS-safelisted set, or a Content-Type outside application/x-www-form-urlencoded, multipart/form-data and text/plain. The browser first sends an OPTIONS request carrying Access-Control-Request-Method and Access-Control-Request-Headers, and only sends the real request if the answer allows it.

That example is shortened from MDN's. The Allow headers answer what the browser asked about the origin, method and headers, and Access-Control-Max-Age says how long the browser may cache the answer; MDN gives its default as 5 seconds. If your Reason mentions a method or a header, compare it to what the OPTIONS response lists. A token the browser doesn't recognize in either list produces the "invalid token" Reasons instead, and MDN says those can most likely only be fixed on the server.

A preflight response that allows a POST with two headers
HTTP/1.1 204 No Content
Access-Control-Allow-Origin: https://foo.example
Access-Control-Allow-Methods: POST, GET, OPTIONS
Access-Control-Allow-Headers: X-PINGOTHER, Content-Type
Access-Control-Max-Age: 86400
Vary: Accept-Encoding, Origin
04How it works

Failures that aren't about headers

  1. 1

    CORS request did not succeed

    MDN calls this "a fundamental network error of some kind", often caused by a browser extension such as an ad blocker. Open DevTools, then Network, and see whether the request failed on DNS, a timeout, a refused connection or a TLS handshake. Try a private window with extensions off.

  2. 2

    External redirect

    A 301, 307 or 308 whose Location is on another origin fails a CORS request. Update the code to use the final URL.

  3. 3

    file:/// pages

    CORS requests may only use http or https. MDN says Firefox and Chrome now treat local files as having opaque origins by default, so a page opened from disk can't make them. Run a local server so everything shares localhost.

  4. 4

    Mixed content

    MDN lists an https page requesting an http resource as a cause of "CORS request did not succeed". Serve the API over HTTPS. See blocked:mixed-content.

05Explained

If you don't control the server

MDN says to see its client-side considerations: restructure the request so it doesn't need a preflight, use mode: no-cors if you don't need to read the response, or send the call through a proxy you control that adds the CORS headers. None of these lets front-end code change a third party's response.

If the server returns a 403 or 405 to the OPTIONS request, the fix is on the server's routing and permissions, not in the browser.

06Explained

What it does to SEO

CORS is enforced by the browser, which MDN says works by letting servers describe which origins are permitted to read a response. Your server returns HTTP status codes for the requests that do arrive; see HTTP status codes for what they mean.

Questions

Asked a lot.

4 questions people ask next, answered from the sources on this page.

01How do I fix Cross-Origin Request Blocked?

Read the Reason line, find it in the table, and apply the fix on the server you call. Most fixes are response headers: Access-Control-Allow-Origin, and for preflights Allow-Methods and Allow-Headers.

02How do I bypass Cross-Origin Request Blocked?

Don't bypass it for real users. Make the server send the right headers, or route the call through a proxy you control. Turning CORS off in your own browser only changes your machine.

03What is a CORS preflight?

An OPTIONS request the browser sends before a request that could change data. The server's answer says which origin, methods and headers are allowed, and the real request follows only if it passes.

04Why does CORS fail from a local file?

CORS requests may only use http or https, and MDN says local files now have opaque origins by default. Serve the files from a local server.

Sources · 7

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • mozilla.org
  1. 01MDN: CORS errorsdeveloper.mozilla.org · checked 2026-10-25
  2. 02MDN: Cross-Origin Resource Sharing (CORS)developer.mozilla.org · checked 2026-10-25
  3. 03MDN: Reason: CORS preflight channel did not succeeddeveloper.mozilla.org · checked 2026-10-25
  4. 04MDN: Reason: CORS request did not succeeddeveloper.mozilla.org · checked 2026-10-25
  5. 05MDN: Reason: CORS request not HTTPdeveloper.mozilla.org · checked 2026-10-25
  6. 06MDN: Reason: CORS request external redirect not alloweddeveloper.mozilla.org · checked 2026-10-25
  7. 07MDN: Reason: invalid token in Access-Control-Allow-Methodsdeveloper.mozilla.org · checked 2026-10-25
Free · 2 minutes

Tools point. Agencies advise. This one ships.

Run the free audit, then approve the fixes. Every change can be undone.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane