Description
Applies route-selected explicit CORS policies.
App_Context
type App_Context is limited private;
Call
procedure Call
(Context : in out App_Context;
X : in out Flyology.HTTP.Server.Applications.Exchange;
Next : in out Components.Next_Handler)
CORS middleware component. Register it in the request-head stage so a preflight never accepts a request body.
Parameters
- Context
Typed application context
- X
Borrowed request exchange
- Next
Borrowed downstream continuation
Components
with package Components is new
Flyology.HTTP.Server.Middleware (App_Context);
Resolve
function Resolve (Slot : Positive) return access constant CORS.Policy
Parameters
- Slot