public interface CorsDefaults
CorsAllowed
annotation is used.| Modifier and Type | Method and Description |
|---|---|
boolean |
allowsCredentials(String uri)
Given an origin which has already passed an
allowsOrigin(String) check, tests that origin to determine
if it is whitelisted for making a credentialed CORS request, on behalf of a specific user. |
boolean |
allowsOrigin(String uri)
Tests the provided origin to determine if it is whitelisted for making non-credentialed CORS requests.
|
Set<String> |
getAllowedRequestHeaders(String uri)
For the provided origin, returns a set of HTTP headers which the browser may include when making a request.
|
Set<String> |
getAllowedResponseHeaders(String uri)
For the provided origin, returns a set of HTTP headers which the browser's CORS support can forward on to the
underlying request.
|
boolean allowsCredentials(String uri) throws IllegalArgumentException
allowsOrigin(String) check, tests that origin to determine
if it is whitelisted for making a credentialed CORS request, on behalf of a specific user.uri - The origin that has already been allowed. Will never be nullIllegalArgumentException - Thrown if the uri is not a valid origin or is null.boolean allowsOrigin(String uri) throws IllegalArgumentException
uri - The origin. Will never be nullIllegalArgumentException - Thrown if the uri is not a valid URL or is null.Set<String> getAllowedRequestHeaders(String uri) throws IllegalArgumentException
uri - the origin that has already been allowed. Will never be nullIllegalArgumentException - Thrown if the uri is not a valid origin or is null.CorsHeaders.ACCESS_CONTROL_ALLOW_HEADERSSet<String> getAllowedResponseHeaders(String uri) throws IllegalArgumentException
uri - the origin that has already been allowed. Will never be nullIllegalArgumentException - Thrown if the uri is not a valid origin or is null.CorsHeaders.ACCESS_CONTROL_EXPOSE_HEADERSCopyright © 2016 Atlassian. All rights reserved.