fix: allowing all headers
This commit is contained in:
@ -6,7 +6,7 @@ import { styleText } from "node:util";
|
|||||||
const CORS_HEADERS = {
|
const CORS_HEADERS = {
|
||||||
"Access-Control-Allow-Origin": ENV.FRONTEND_URL,
|
"Access-Control-Allow-Origin": ENV.FRONTEND_URL,
|
||||||
"Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, OPTIONS",
|
"Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, OPTIONS",
|
||||||
"Access-Control-Allow-Headers": "Content-Type, Authorization",
|
"Access-Control-Allow-Headers": "*",
|
||||||
};
|
};
|
||||||
|
|
||||||
const allowCors = async (_: Request): Promise<Response> => {
|
const allowCors = async (_: Request): Promise<Response> => {
|
||||||
|
|||||||
Reference in New Issue
Block a user