Interface CorsRoutes
public interface CorsRoutes
Implemented by a generated router whose controllers carry @CrossOrigin:
answers the policy of the route a request is for, so the server applies it
in place of the global cn1.cors.* one.
Internal to generated code; an application does not implement it.
-
Method Summary
Modifier and TypeMethodDescriptioncorsPolicy(HttpServer.Request request) The@CrossOriginpolicy of the routerequestis for -- for a preflight, the route itsAccess-Control-Request-Methodasks about -- or null when that route has none.
-
Method Details
-
corsPolicy
The@CrossOriginpolicy of the routerequestis for -- for a preflight, the route itsAccess-Control-Request-Methodasks about -- or null when that route has none.
-