• Skip to main content
  • Skip to search
  • Skip to select language
  • References
    • Overview / Web Technology

      Web technology reference for developers

    • HTML

      Structure of content on the web

    • CSS

      Code used to describe document style

    • JavaScript

      General-purpose scripting language

    • HTTP

      Protocol for transmitting web resources

    • Web APIs

      Interfaces for building web applications

    • Web Technology

      Web technology reference for developers

  • Guides
    • Overview / MDN Learning Area

      Learn web development

    • MDN Learning Area

      Learn web development

    • HTML

      Learn to structure web content with HTML

    • CSS

      Learn to style content using CSS

    • JavaScript

      Learn to run scripts in the browser

    • Accessibility

      Learn to make the web accessible to all

  • MDN Plus
    • Overview

      More MDN. Your MDN.

    • FAQ

      Frequently asked questions about MDN Plus

  • Already a subscriber?
  • Get MDN Plus
  1. Webtechnologien für Entwickler
  2. HTTP
  3. Cross-Origin Resource Sharing (CORS)
  4. CORS errors
  5. Reason: CORS request did not succeed

Der Inhalt dieser Seite wurde von der Community übersetzt, jedoch wird er nicht mehr aktiv gepflegt und kann daher veraltet sein. Wenn du mithelfen möchtest, kannst du hier herausfinden wie deaktivierte Übersetzungen reaktiviert werden können.

In this article

  • Grund
  • Was ist schiefgelaufen?
  • Siehe auch

Related Topics

  1. HTTP
  2. Guides:
  3. Resources and URIs
    1. Identifying resources on the Web
    2. Data URIs
    3. Introduction to MIME types
    4. Common MIME types
    5. Choosing between www and non-www URLs
  4. HTTP guide
    1. Basics of HTTP
    2. Overview of HTTP
    3. Evolution of HTTP
    4. HTTP Messages
    5. A typical HTTP session
    6. Connection management in HTTP/1.x
    7. Protocol upgrade mechanism
  5. HTTP security
    1. Content Security Policy (CSP)
    2. HTTP Public Key Pinning (HPKP)
    3. HTTP Strict Transport Security (HSTS)
    4. Cookie security
    5. X-Content-Type-Options
    6. X-Frame-Options
    7. X-XSS-Protection
    8. Mozilla web security guidelines
    9. Mozilla Observatory
  6. HTTP access control (CORS)
  7. HTTP authentication
  8. HTTP caching
  9. HTTP compression
  10. HTTP conditional requests
  11. HTTP content negotiation
  12. HTTP cookies
  13. HTTP range requests
  14. HTTP redirects
  15. HTTP specifications
  16. Feature policy
  17. References:
  18. HTTP headers
    1. Accept
    2. Accept-CH
    3. Experimental Non-Standard Deprecated Accept-CH-Lifetime
    4. Accept-Charset
    5. Accept-Encoding
    6. Accept-Language
    7. Accept-Patch
    8. Accept-Post
    9. Accept-Ranges
    10. Access-Control-Allow-Credentials
    11. Access-Control-Allow-Headers
    12. Access-Control-Allow-Methods
    13. Access-Control-Allow-Origin
    14. Access-Control-Expose-Headers
    15. Access-Control-Max-Age
    16. Access-Control-Request-Headers
    17. Access-Control-Request-Method
    18. Age
    19. Allow
    20. Alt-Svc
    21. Authorization
    22. Cache-Control
    23. Clear-Site-Data
    24. Connection
    25. Content-Disposition
    26. Experimental Non-Standard Deprecated Content-DPR
    27. Content-Encoding
    28. Content-Language
    29. Content-Length
    30. Content-Location
    31. Content-Range
    32. Content-Security-Policy
    33. Content-Security-Policy-Report-Only
    34. Content-Type
    35. Cookie
    36. Cross-Origin-Embedder-Policy
    37. Cross-Origin-Opener-Policy
    38. Cross-Origin-Resource-Policy
    39. Date
    40. Experimental Device-Memory
    41. Digest
    42. DNT
    43. Experimental Downlink
    44. Experimental Non-Standard Deprecated DPR
    45. Experimental Early-Data
    46. Experimental ECT
    47. ETag
    48. Expect
    49. Expect-CT
    50. Expires
    51. Experimental Feature-Policy
    52. Forwarded
    53. From
    54. Host
    55. If-Match
    56. If-Modified-Since
    57. If-None-Match
    58. If-Range
    59. If-Unmodified-Since
    60. Keep-Alive
    61. Non-Standard Deprecated Large-Allocation
    62. Last-Modified
    63. Link
    64. Location
    65. NEL
    66. Origin
    67. Deprecated Pragma
    68. Proxy-Authenticate
    69. Proxy-Authorization
    70. Deprecated Public-Key-Pins
    71. Deprecated Public-Key-Pins-Report-Only
    72. Range
    73. Referer
    74. Referrer-Policy
    75. Retry-After
    76. Experimental RTT
    77. Save-Data
    78. Experimental Sec-CH-UA
    79. Experimental Sec-CH-UA-Arch
    80. Experimental Sec-CH-UA-Bitness
    81. Experimental Sec-CH-UA-Full-Version
    82. Experimental Sec-CH-UA-Full-Version-List
    83. Experimental Sec-CH-UA-Mobile
    84. Experimental Sec-CH-UA-Model
    85. Experimental Sec-CH-UA-Platform
    86. Experimental Sec-CH-UA-Platform-Version
    87. Sec-Fetch-Dest
    88. Sec-Fetch-Mode
    89. Sec-Fetch-Site
    90. Sec-Fetch-User
    91. Sec-WebSocket-Accept
    92. Server
    93. Server-Timing
    94. Service-Worker-Navigation-Preload
    95. Set-Cookie
    96. SourceMap
    97. Strict-Transport-Security
    98. TE
    99. Timing-Allow-Origin
    100. Tk
    101. Trailer
    102. Transfer-Encoding
    103. Upgrade
    104. Upgrade-Insecure-Requests
    105. User-Agent
    106. Vary
    107. Via
    108. Experimental Non-Standard Deprecated Viewport-Width
    109. Want-Digest
    110. Deprecated Warning
    111. Experimental Deprecated Width
    112. WWW-Authenticate
    113. X-Content-Type-Options
    114. X-DNS-Prefetch-Control
    115. Non-Standard X-Forwarded-For
    116. Non-Standard X-Forwarded-Host
    117. Non-Standard X-Forwarded-Proto
    118. X-Frame-Options
    119. X-XSS-Protection
  19. HTTP request methods
    1. CONNECT
    2. DELETE
    3. GET
    4. HEAD
    5. OPTIONS
    6. PATCH
    7. POST
    8. PUT
    9. TRACE
  20. HTTP response status codes
    1. 100 Continue
    2. 101 Switching Protocols
    3. 103 Early Hints
    4. 200 OK
    5. 201 Created
    6. 202 Accepted
    7. 203 Non-Authoritative Information
    8. 204 No Content
    9. 205 Reset Content
    10. 206 Partial Content
    11. 300 Multiple Choices
    12. 301 Moved Permanently
    13. 302 Found
    14. 303 See Other
    15. 304 Not Modified
    16. 307 Temporary Redirect
    17. 308 Permanent Redirect
    18. 400 Bad Request
    19. 401 Unauthorized
    20. 402 Payment Required
    21. 403 Forbidden
    22. 404 Not Found
    23. 405 Method Not Allowed
    24. 406 Not Acceptable
    25. 407 Proxy Authentication Required
    26. 408 Request Timeout
    27. 409 Conflict
    28. 410 Gone
    29. 411 Length Required
    30. 412 Precondition Failed
    31. 413 Payload Too Large
    32. 414 URI Too Long
    33. 415 Unsupported Media Type
    34. 416 Range Not Satisfiable
    35. 417 Expectation Failed
    36. 418 I'm a teapot
    37. 422 Unprocessable Entity
    38. 425 Too Early
    39. 426 Upgrade Required
    40. 428 Precondition Required
    41. 429 Too Many Requests
    42. 431 Request Header Fields Too Large
    43. 451 Unavailable For Legal Reasons
    44. 500 Internal Server Error
    45. 501 Not Implemented
    46. 502 Bad Gateway
    47. 503 Service Unavailable
    48. 504 Gateway Timeout
    49. 505 HTTP Version Not Supported
    50. 506 Variant Also Negotiates
    51. 507 Insufficient Storage
    52. 508 Loop Detected
    53. 510 Not Extended
    54. 511 Network Authentication Required
  21. CSP directives
    1. CSP: base-uri
    2. CSP: block-all-mixed-content
    3. CSP: child-src
    4. CSP: connect-src
    5. CSP: default-src
    6. CSP: font-src
    7. CSP: form-action
    8. CSP: frame-ancestors
    9. CSP: frame-src
    10. CSP: img-src
    11. CSP: manifest-src
    12. CSP: media-src
    13. CSP: navigate-to
    14. CSP: object-src
    15. CSP: plugin-types
    16. CSP: prefetch-src
    17. Deprecated CSP: referrer
    18. CSP: report-to
    19. CSP: report-uri
    20. CSP: require-sri-for
    21. CSP: require-trusted-types-for
    22. CSP: sandbox
    23. CSP: script-src
    24. CSP: script-src-attr
    25. CSP: script-src-elem
    26. CSP source values
    27. CSP: style-src
    28. CSP: style-src-attr
    29. CSP: style-src-elem
    30. CSP: trusted-types
    31. CSP: upgrade-insecure-requests
    32. CSP: worker-src
  22. CORS errors
    1. Reason: CORS header 'Access-Control-Allow-Origin' does not match 'xyz'
    2. Reason: CORS request did not succeed
    3. Reason: CORS disabled
    4. Reason: CORS request external redirect not allowed
    5. Reason: invalid token 'xyz' in CORS header 'Access-Control-Allow-Headers'
    6. Reason: invalid token 'xyz' in CORS header 'Access-Control-Allow-Methods'
    7. Reason: Did not find method in CORS header 'Access-Control-Allow-Methods'
    8. Reason: expected 'true' in CORS header 'Access-Control-Allow-Credentials'
    9. Reason: missing token 'xyz' in CORS header 'Access-Control-Allow-Headers' from CORS preflight channel
    10. Reason: CORS header 'Access-Control-Allow-Origin' missing
    11. Reason: Multiple CORS header 'Access-Control-Allow-Origin' not allowed
    12. Reason: Credential is not supported if the CORS header 'Access-Control-Allow-Origin' is '*'
    13. Reason: CORS header 'Origin' cannot be added
    14. Reason: CORS preflight channel did not succeed
    15. Reason: CORS request not HTTP
  23. Feature-Policy directives
    1. Experimental Feature-Policy: accelerometer
    2. Experimental Feature-Policy: ambient-light-sensor
    3. Experimental Feature-Policy: autoplay
    4. Experimental Feature-Policy: battery
    5. Experimental Feature-Policy: camera
    6. Experimental Feature-Policy: display-capture
    7. Experimental Feature-Policy: document-domain
    8. Experimental Feature-Policy: encrypted-media
    9. Experimental Feature-Policy: fullscreen
    10. Experimental Feature-Policy: gamepad
    11. Experimental Feature-Policy: geolocation
    12. Experimental Feature-Policy: gyroscope
    13. Experimental Non-Standard Feature-Policy: layout-animations
    14. Experimental Non-Standard Feature-Policy: legacy-image-formats
    15. Experimental Feature-Policy: magnetometer
    16. Experimental Feature-Policy: microphone
    17. Experimental Feature-Policy: midi
    18. Experimental Non-Standard Feature-Policy: oversized-images
    19. Experimental Feature-Policy: payment
    20. Experimental Feature-Policy: picture-in-picture
    21. Experimental Feature-Policy: publickey-credentials-get
    22. Experimental Feature-Policy: screen-wake-lock
    23. Experimental Feature-Policy: speaker-selection
    24. Experimental Feature-Policy: sync-xhr
    25. Experimental Non-Standard Feature-Policy: unoptimized-images
    26. Experimental Non-Standard Feature-Policy: unsized-media
    27. Experimental Feature-Policy: usb
    28. Experimental Feature-Policy: web-share
    29. Experimental Feature-Policy: xr-spatial-tracking

In this article

  • Grund
  • Was ist schiefgelaufen?
  • Siehe auch

Reason: CORS request did not succeed

Grund

Grund: CORS-Anfrage schlug fehl

Was ist schiefgelaufen?

Die HTTP-Anfrage, die CORS benutzt hat, versagt, weil die HTTP-Verbindung entweder auf Netzwerk- oder Protokoll-Level versagt hat. Der Fehler hat nicht direkt etwas mit CORS zu tun, sondern ist ein unbestimmter fundamentaler Netzwerkfehler.

Siehe auch

  • CORS-Fehler
  • Glossar: CORS
  • CORS-Einführung

Last modified: 8. Dez. 2020, by MDN contributors

Your blueprint for a better internet.

  • MDN on Twitter
  • MDN on GitHub

MDN

  • About
  • Hacks Blog
  • Careers

Support

  • Product help
  • Report a page issue
  • Report a site issue

Our communities

  • MDN Community
  • MDN Forum
  • MDN Chat

Developers

  • Web Technologies
  • Learn Web Development
  • MDN Plus
  • Website Privacy Notice
  • Cookies
  • Legal
  • Community Participation Guidelines

Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2022 by individual mozilla.org contributors. Content available under a Creative Commons license.