A URL string representing an origin, or * for any origin.
A list of HTTP methods whose use is allowed by clients.
A list of HTTP headers that can be used in a client's request.
A TwilioResponse with CORS headers for the given origin, methods, and headers.
Generated using TypeDoc
Create a new
TwilioResponsewith CORS headers.The
originparameter is required, but passing in*will allow access from any origin.Usage:
const response = createCORSResponse('*');