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

Learn More

CORS issue only on Firefox desktop

  • No replies
  • 1 has this problem
  • 15 views
more options

I get the following error in Firefox desktop. But it works fine in Chrome desktop, Edge desktop, Firefox mobile (iPhone), Chrome mobile (iPhone), Safari mobile (iPhone).

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://us-west1-***.cloudfunctions.net/transcribe. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 500.

I have already tested with all Firefox plugins disabled, but still get the error.

Below is the backend code in my app for handling the CORS issue, and as I said it's working fine except for Firefox desktop.

   # Set CORS headers for the preflight request
   if request.method == 'OPTIONS':
       # Allows GET requests from any origin with the Content-Type
       # header and caches preflight response for an 3600s
       headers = {
           'Access-Control-Allow-Origin': '*',
           'Access-Control-Allow-Methods': '*',
           'Access-Control-Allow-Headers': 'Content-Type',
           'Access-Control-Max-Age': '3600'
       }
       return (, 204, headers)

   # Set CORS headers for the main request
   headers = {
       'Access-Control-Allow-Origin': '*'
   }
I get the following error in Firefox desktop. But it works fine in Chrome desktop, Edge desktop, Firefox mobile (iPhone), Chrome mobile (iPhone), Safari mobile (iPhone). Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://us-west1-***.cloudfunctions.net/transcribe. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 500. I have already tested with all Firefox plugins disabled, but still get the error. Below is the backend code in my app for handling the CORS issue, and as I said it's working fine except for Firefox desktop. # Set CORS headers for the preflight request if request.method == 'OPTIONS': # Allows GET requests from any origin with the Content-Type # header and caches preflight response for an 3600s headers = { 'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Methods': '*', 'Access-Control-Allow-Headers': 'Content-Type', 'Access-Control-Max-Age': '3600' } return ('', 204, headers) # Set CORS headers for the main request headers = { 'Access-Control-Allow-Origin': '*' }

Modified by Vahid