public class CORS
extends java.lang.Object
Provice CORS header manipulation methods
Modifier and Type | Class and Description |
---|---|
static interface |
CORS.AllowCredentials
Mark a controller class or action handler method that needs to add
Access-Control-Allow-Credentials header and set the value to true |
static interface |
CORS.AllowHeaders
Mark a controller class or action handler method that needs to add
Access-Control-Allow-Headers header |
static interface |
CORS.AllowOrigin
Mark a controller class or action handler method that needs to add
Access-Control-Allow-Origin header |
static interface |
CORS.Disable
Mark a controller class or action handler method that must not add any CORS headers irregarding to the global CORS setting
|
static interface |
CORS.DisallowCredentials
Mark a controller class or action handler method that needs to add
Access-Control-Allow-Credentials header and set the value to false |
static interface |
CORS.ExposeHeaders
Mark a controller class or action handler method that needs to add
Access-Control-Expose-Headers header |
static interface |
CORS.MaxAge
Mark a controller class or action handler method that needs to add
Access-Control-Max-Age header |
static class |
CORS.Spec |
Constructor and Description |
---|
CORS() |
Modifier and Type | Method and Description |
---|---|
static CORS.Spec |
spec(java.lang.Class controller) |
static CORS.Spec |
spec(java.util.Collection<org.osgl.http.H.Method> methods) |
static CORS.Spec |
spec(java.lang.reflect.Method action) |
Copyright © 2014–2017 ActFramework. All rights reserved.