Parameters
- origin: string | null
- allowedOrigins: string[]
Returns
| {
"Access-Control-Allow-Credentials": string;
"Access-Control-Allow-Headers": string;
"Access-Control-Allow-Methods": string;
"Access-Control-Allow-Origin": string;
}
| null
CORS headers object, or null if the origin is not allowed.
Returns CORS headers for the given origin if it is in the allowed list.