X
Tap here to go to the mobile version of the site.

Support Forum

When will Mozilla finally fix that bug that doesn't pass "Origin" in the Ajax header when POSTing to an API with JSON?

Posted

Hello, y'all. I love that I can perform a CORS Ajax POST to my API, but alas in Firefox for Android (Gecko/68), it is the only browser in existence that won't send the "Origin" in the header to my server, and causes my CORS call to die a miserable death. Even the desktop version of Firefox allows this, and I had no problems with Chrome, Mobile Chrome, Safari, IE, Edge, Opera... Why so stingy? I found a 9 year old thread talking about how developers kept going back and forth with this over some security issue (mainly pre-stating the origin manually in the header, or some sort of spoofing), but this seems like a real no-brainer here. Can anybody explain why I now have to exclude Firefox for Android as a useful browser to view this app?

Hello, y'all. I love that I can perform a CORS Ajax POST to my API, but alas in Firefox for Android (Gecko/68), it is the only browser in existence that won't send the "Origin" in the header to my server, and causes my CORS call to die a miserable death. Even the desktop version of Firefox allows this, and I had no problems with Chrome, Mobile Chrome, Safari, IE, Edge, Opera... Why so stingy? I found a 9 year old thread talking about how developers kept going back and forth with this over some security issue (mainly pre-stating the origin manually in the header, or some sort of spoofing), but this seems like a real no-brainer here. Can anybody explain why I now have to exclude Firefox for Android as a useful browser to view this app?
Quote

Additional System Details

Installed Plug-ins

None that I know of..?

Application

  • User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0

More Information

Seburo
  • Top 10 Contributor
  • Moderator
947 solutions 7130 answers

Hi

I must admit that I do not fully understand the issue you are having, but I recommend that you try the new Firefox Preview browser from the Google Play store as this is the focus of our developers going forwards.

Hi I must admit that I do not fully understand the issue you are having, but I recommend that you try the new Firefox Preview browser from the Google Play store as this is the focus of our developers going forwards.
Was this helpful to you?
Quote

Question owner

Hmm... Downloaded Firefox Preview from the Google Play Store. It won't even run my jQuery scripts. Is there some sort of Add On, or is this "the focus of [your] developers going forward?"

Hmm... Downloaded Firefox Preview from the Google Play Store. It won't even run my jQuery scripts. Is there some sort of Add On, or is this "the focus of [your] developers going forward?"
Was this helpful to you?
Quote
Seburo
  • Top 10 Contributor
  • Moderator
947 solutions 7130 answers

Hi

Do you have an example of a page where these scripts are not running?

Hi Do you have an example of a page where these scripts are not running?
Was this helpful to you?
Quote
Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.