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 Type
    Method
    Description
    The @CrossOrigin policy of the route request is for -- for a preflight, the route its Access-Control-Request-Method asks about -- or null when that route has none.
  • Method Details

    • corsPolicy

      Cors corsPolicy(HttpServer.Request request)
      The @CrossOrigin policy of the route request is for -- for a preflight, the route its Access-Control-Request-Method asks about -- or null when that route has none.