搜尋 Mozilla 技術支援網站

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

Learn More

CORS issue only on Firefox browser

  • 無回覆
  • 0 有這個問題
  • 6 次檢視
more options

Dear Mozilla Support Team,

I hope this message finds you well. I am reaching out to report an issue related to Cross-Origin Resource Sharing (CORS) in the Firefox browser.

When attempting to logout from my Java Spring application, I encounter the following error message: "Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at (Reason: CORS header ‘Access-Control-Allow-Origin’ does not match)." This issue seems to be specific to the Firefox browser, as I am not experiencing the same problem in other browsers.

I have thoroughly checked my web application's code and configurations, and the issue appears to be related to how Firefox handles CORS headers. The server is configured to include the necessary "Access-Control-Allow-Origin" header, and the application works as expected on other browsers.

Steps to reproduce the issue:

Login to the application in Firefox. Click on logout in Firefox. Observe the "Cross-Origin Request Blocked" error in the browser console. (Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://login.mydomain.com/logout. (Reason: CORS header ‘Access-Control-Allow-Origin’ does not match ‘https://login.mydomain.com’).

Expected behavior: The remote resource should be accessible without CORS-related errors.

I would greatly appreciate your assistance in resolving this matter. If there are any specific settings or configurations that need to be adjusted in Firefox to address CORS-related issues, please provide guidance on how to do so.

Thank you for your time and attention to this matter. I look forward to your prompt assistance in resolving this issue.

Best regards,

Dear Mozilla Support Team, I hope this message finds you well. I am reaching out to report an issue related to Cross-Origin Resource Sharing (CORS) in the Firefox browser. When attempting to logout from my Java Spring application, I encounter the following error message: "Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at (Reason: CORS header ‘Access-Control-Allow-Origin’ does not match)." This issue seems to be specific to the Firefox browser, as I am not experiencing the same problem in other browsers. I have thoroughly checked my web application's code and configurations, and the issue appears to be related to how Firefox handles CORS headers. The server is configured to include the necessary "Access-Control-Allow-Origin" header, and the application works as expected on other browsers. Steps to reproduce the issue: Login to the application in Firefox. Click on logout in Firefox. Observe the "Cross-Origin Request Blocked" error in the browser console. (Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://login.mydomain.com/logout. (Reason: CORS header ‘Access-Control-Allow-Origin’ does not match ‘https://login.mydomain.com’). Expected behavior: The remote resource should be accessible without CORS-related errors. I would greatly appreciate your assistance in resolving this matter. If there are any specific settings or configurations that need to be adjusted in Firefox to address CORS-related issues, please provide guidance on how to do so. Thank you for your time and attention to this matter. I look forward to your prompt assistance in resolving this issue. Best regards,

如果您還沒有帳號,您必須先登入帳號 來回覆文章。還沒有帳號的話,只能發問新問題