chore: cors

This commit is contained in:
Ephraim Atta-Duncan
2024-10-23 20:04:25 +00:00
parent 772fb4cbf5
commit 62c4c32be5
2 changed files with 2 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ const ALLOWED_ORIGINS = new Set(['documenso.com', 'prd-openpage-api.vercel.app']
const CORS_HEADERS = {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Methods': 'GET, OPTIONS',
'Access-Control-Allow-Methods': 'GET, PUT, DELETE, OPTIONS',
'Access-Control-Allow-Headers': 'Content-Type',
};

View File

@@ -12,7 +12,7 @@ export function GET(request: NextRequest) {
headers: {
// TODO: Update for marketing page
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Methods': 'GET, OPTIONS',
'Access-Control-Allow-Methods': 'GET, PUT, DELETE, OPTIONS',
'Access-Control-Allow-Headers': 'Content-Type',
},
});