diff --git a/apps/openpage-api/app/request-handler.ts b/apps/openpage-api/app/request-handler.ts index 4f54e7632..721b5f0d7 100644 --- a/apps/openpage-api/app/request-handler.ts +++ b/apps/openpage-api/app/request-handler.ts @@ -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', }; diff --git a/apps/openpage-api/app/route.ts b/apps/openpage-api/app/route.ts index 691524a64..9c87ff111 100644 --- a/apps/openpage-api/app/route.ts +++ b/apps/openpage-api/app/route.ts @@ -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', }, });