Difference between revisions of "Cross-Origin Resource Sharing (CORS)"

From wikieduonline
Jump to navigation Jump to search
Line 42: Line 42:
 
     }
 
     }
 
  ]
 
  ]
 +
 +
 +
== Errors ==
 +
* <code>[[has been blocked by CORS policy]]</code>
  
  
Line 48: Line 52:
 
* [[HSTS]]
 
* [[HSTS]]
 
* [[Tellme Networks]]
 
* [[Tellme Networks]]
* <code>[[has been blocked by CORS policy]]</code>
 
  
 
== See also ==
 
== See also ==

Revision as of 08:11, 1 May 2023

wikipedia:Cross-Origin Resource Sharing is a mechanism that allows restricted resources on a web page to be requested from another domain outside the domain from which the first resource was served.

Example:

[
    {
        "AllowedHeaders": [
            "*"
        ],
        "AllowedMethods": [
            "PUT",
            "POST"
        ],
        "AllowedOrigins": [
            "*"
        ],
        "ExposeHeaders": [],
        "MaxAgeSeconds": 3000
    }
]


[
   {
       "AllowedHeaders": [
           "*"
       ],
       "AllowedMethods": [
           "PUT",
           "POST",
           "GET",
           "DELETE"
       ],
       "AllowedOrigins": [
           "*"
       ],
       "ExposeHeaders": [
           "ETag"
       ],
       "MaxAgeSeconds": 3000
   }
]


Errors


Related terms

See also

Advertising: