Difference between revisions of "Cross-Origin Resource Sharing (CORS)"
Jump to navigation
Jump to search
Line 20: | Line 20: | ||
] | ] | ||
</pre> | </pre> | ||
+ | |||
+ | |||
+ | [ | ||
+ | { | ||
+ | "AllowedHeaders": [ | ||
+ | "*" | ||
+ | ], | ||
+ | "AllowedMethods": [ | ||
+ | "PUT", | ||
+ | "POST", | ||
+ | "GET", | ||
+ | "DELETE" | ||
+ | ], | ||
+ | "AllowedOrigins": [ | ||
+ | "*" | ||
+ | ], | ||
+ | "ExposeHeaders": [ | ||
+ | "[[ETag]]" | ||
+ | ], | ||
+ | "MaxAgeSeconds": 3000 | ||
+ | } | ||
+ | ] | ||
Revision as of 09:05, 15 September 2022
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 } ]
Related terms
See also
Advertising: