CorsRule Class
CORS is an HTTP feature that enables a web application running under one domain to access resources in another domain. Web browsers implement a security restriction known as same-origin policy that prevents a web page from calling APIs in a different domain; CORS provides a secure way to allow one domain (the origin domain) to call APIs in another domain.
For more information, see https://msdn.microsoft.com/en-us/library/azure/dn535601.aspx
- Inheritance
-
builtins.objectCorsRule
Constructor
CorsRule(allowed_origins, allowed_methods, max_age_in_seconds=0, exposed_headers=None, allowed_headers=None)
Parameters
- allowed_origins
- allowed_methods
- max_age_in_seconds
default value: 0
- exposed_headers
default value: None
- allowed_headers
default value: None
Feedback
Submit and view feedback for