Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. HTTP
  3. Guides
  4. Cross-Origin Resource Sharing (CORS)
  5. CORS errors
  6. Reason: CORS request external redirect not allowed

Reason: CORS request external redirect not allowed

Reason

Reason: CORS request external redirect not allowed

What went wrong?

TheCORS request was responded to by the server with an HTTP redirectto a URL on a different origin than the original request, which is not permitted duringCORS requests.

For example, if the pagehttps://service.tld/fetchdata were requested, andthe HTTP response is "301 Moved Permanently", "307 Temporary Redirect", or "308Permanent Redirect" with aLocation ofhttps://anotherservice.net/getdata, the CORS request will fail in thismanner.

To fix the problem, update your code to use the new URL as reported by the redirect,thereby avoiding the redirect.

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp