Class CorsSettings
- java.lang.Object
-
- com.microsoft.azure.management.appservice.CorsSettings
-
public class CorsSettings extends Object
Cross-Origin Resource Sharing (CORS) settings for the app.
-
-
Constructor Summary
Constructors Constructor Description CorsSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>allowedOrigins()Get gets or sets the list of origins that should be allowed to make cross-origin calls (for example: http://example.com:12345).BooleansupportCredentials()Get gets or sets whether CORS requests with credentials are allowed.CorsSettingswithAllowedOrigins(List<String> allowedOrigins)Set gets or sets the list of origins that should be allowed to make cross-origin calls (for example: http://example.com:12345).CorsSettingswithSupportCredentials(Boolean supportCredentials)Set gets or sets whether CORS requests with credentials are allowed.
-
-
-
Method Detail
-
allowedOrigins
public List<String> allowedOrigins()
Get gets or sets the list of origins that should be allowed to make cross-origin calls (for example: http://example.com:12345). Use "*" to allow all.- Returns:
- the allowedOrigins value
-
withAllowedOrigins
public CorsSettings withAllowedOrigins(List<String> allowedOrigins)
Set gets or sets the list of origins that should be allowed to make cross-origin calls (for example: http://example.com:12345). Use "*" to allow all.- Parameters:
allowedOrigins- the allowedOrigins value to set- Returns:
- the CorsSettings object itself.
-
supportCredentials
public Boolean supportCredentials()
Get gets or sets whether CORS requests with credentials are allowed. See https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials for more details.- Returns:
- the supportCredentials value
-
withSupportCredentials
public CorsSettings withSupportCredentials(Boolean supportCredentials)
Set gets or sets whether CORS requests with credentials are allowed. See https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials for more details.- Parameters:
supportCredentials- the supportCredentials value to set- Returns:
- the CorsSettings object itself.
-
-