# 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.

Canonical: https://scaplet.com/errors/misc/cross-origin-request-blocked

Guide Error · Browser

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 with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fmisc%2Fcross-origin-request-blocked%20(%22Cross-Origin%20Request%20Blocked%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fmisc%2Fcross-origin-request-blocked%20(%22Cross-Origin%20Request%20Blocked%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fmisc%2Fcross-origin-request-blocked%20(%22Cross-Origin%20Request%20Blocked%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fmisc%2Fcross-origin-request-blocked%20(%22Cross-Origin%20Request%20Blocked%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

On this page

## 6 parts, 5 minutes.

1. [What the message means 01](#what-the-message-means)
2. [Find your Reason 02](#find-your-reason)
3. [Preflight failures 03](#preflight-failures)
4. [Failures that aren't about headers 04](#failures-that-aren-t-about-headers)
5. [If you don't control the server 05](#if-you-don-t-control-the-server)
6. [What it does to SEO 06](#what-it-does-to-seo)

_01_Explained

## 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](/errors/browser/access-control-allow-origin). This page covers the whole list.

Most [CORS](/glossary/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.

_02_Explained

## Find your Reason

Firefox CORS reasons, causes and fixes
| Reason as Firefox prints it | What went wrong | Fix |
| CORS header 'Access-Control-Allow-Origin' missing | The response has no such header | Send 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 sent | Include your origin, with the scheme, in a single header |
| Multiple CORS header 'Access-Control-Allow-Origin' not allowed | More than one header came back | Send one header with one origin |
| Credential is not supported if the CORS header 'Access-Control-Allow-Origin' is '*' | A credentialed request got the wildcard | Return the requesting origin, or drop credentials on the client |
| expected 'true' in CORS header 'Access-Control-Allow-Credentials' | The server doesn't permit credentials | Set 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 allows | Use an allowed method, or add it on the server |
| missing token 'xyz' in CORS header 'Access-Control-Allow-Headers' from CORS preflight channel | The preflight didn't allow a header you send | Allow that header on the server, or stop sending it |
| invalid token 'xyz' in CORS header 'Access-Control-Allow-Methods' | The response names an unrecognized method | Remove the invalid method name on the server |
| invalid token 'xyz' in CORS header 'Access-Control-Allow-Headers' | The response names an unrecognized header | Remove the invalid header name on the server |
| CORS preflight channel did not succeed | The preflight couldn't be performed | Fix the network error, or make sure the code preflights once per connection |
| CORS request did not succeed | The connection failed at the network or protocol level | Check DevTools Network, extensions, TLS and [mixed content](/seo-issues/mixed-content-issue) |
| CORS request external redirect not allowed | The server redirected to a different origin | Call the new URL directly |
| CORS request not http | The URL isn't http or [https](/glossary/https), often file:/// | Serve the files from a local server |
| CORS header 'Origin' cannot be added | Firefox couldn't add the required Origin header | Seen with enhanced-privilege code; rarely a site bug |
| CORS disabled | CORS is turned off in the browser | Set the Firefox preference content.cors.disable back to false |

_03_Check 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.

**Wildcards stop working with credentials**MDN states that for credentialed requests the server must not use `*` in `Access-Control-Allow-Origin`, `Access-Control-Allow-Headers`, `Access-Control-Allow-Methods` or `Access-Control-Expose-Headers`. List explicit values.

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
```

_04_How 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](/errors/http/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](/errors/browser/blocked-mixed-content).

_05_Explained

## 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](/errors/http/403) or [405](/errors/http/405) to the OPTIONS request, the fix is on the server's routing and permissions, not in the browser.

_06_Explained

## 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](/glossary/http-status-codes) for what they mean.

Questions

## Asked a lot.

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

_01_ How 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.

_02_ How 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.

_03_ What 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.

_04_ Why 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. 01 [MDN: CORS errors](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CORS/Errors) developer.mozilla.org · checked 2026-10-25
2. 02 [MDN: Cross-Origin Resource Sharing (CORS)](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CORS) developer.mozilla.org · checked 2026-10-25
3. 03 [MDN: Reason: CORS preflight channel did not succeed](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CORS/Errors/CORSPreflightDidNotSucceed) developer.mozilla.org · checked 2026-10-25
4. 04 [MDN: Reason: CORS request did not succeed](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CORS/Errors/CORSDidNotSucceed) developer.mozilla.org · checked 2026-10-25
5. 05 [MDN: Reason: CORS request not HTTP](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CORS/Errors/CORSRequestNotHttp) developer.mozilla.org · checked 2026-10-25
6. 06 [MDN: Reason: CORS request external redirect not allowed](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CORS/Errors/CORSExternalRedirectNotAllowed) developer.mozilla.org · checked 2026-10-25
7. 07 [MDN: Reason: invalid token in Access-Control-Allow-Methods](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CORS/Errors/CORSInvalidAllowMethod) developer.mozilla.org · checked 2026-10-25

## Keep learning

[All errors](/errors)

[Learn Access-Control-Allow-Origin Browser errors](/errors/browser/access-control-allow-origin) [Related HTTP status codes Crawling and indexing](/glossary/http-status-codes) [Read next HTTP 301 Moved Permanently HTTP status codes](/errors/http/301) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in errors
[HTTP status code list](/errors/http/http-status-code-list) [REST API status codes](/errors/http/rest-api-status-codes) [Access-Control-Allow-Origin](/errors/browser/access-control-allow-origin)

More in Browser errors
[Cross-Origin Request Blocked](/errors/misc/cross-origin-request-blocked) [Module not found: Can't resolve](/errors/misc/module-not-found-can-t-resolve)

Terms on this page
[CORS](/glossary/cors) [HTTPS](/glossary/https) [HTTP status codes](/glossary/http-status-codes)

Free · 2 minutes

## Tools point. Agencies advise. _This one ships._

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

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **0→7** ChatGPT citations in six weeks Paylane
