Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
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.
Methods
public abstract 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. |
Method details
corsPolicy
public abstract 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.