為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

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

  • 3 回覆
  • 1 有這個問題
  • 9 次檢視
  • 最近回覆由 Paul

more options

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?

所有回覆 (3)

more options

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.

more options

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?"

more options

Hi

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