3 CORS
Link to this section with
@secref["cors" #:doc '(lib "koyo/scribblings/koyo.scrbl")]
Link to this section with
@secref["cors" #:doc '(lib "koyo/scribblings/koyo.scrbl")]
This module provides a wrapper function and parameters for handling
CORS requests.
These parameters determine the behavior of
wrap-cors. Each
one maps to one of the CORS response headers.
When current-cors-origin is #f, the origin is
based upon current-application-url-scheme and
current-application-url-host.
Augments
handler to add the various necessary bits of
information to support CORS in its response. For
OPTIONS
requests,
wrap-cors takes full control of the request.