Add PUT and DELETE to preflight allowed methods (#3278)

This commit is contained in:
Reynaldi Chernando
2026-06-19 23:35:29 +07:00
committed by GitHub
parent e2174a14cf
commit 30432b931a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ function initS2w () {
async handleOptions(request) {
const corsHeaders = {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Methods': 'GET,HEAD,POST,OPTIONS',
'Access-Control-Allow-Methods': 'GET,HEAD,POST,PUT,DELETE,OPTIONS',
'Access-Control-Max-Age': '86400',
};
if (
+1 -1
View File
@@ -77,7 +77,7 @@ function initS2w () {
async handleOptions(request) {
const corsHeaders = {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Methods': 'GET,HEAD,POST,OPTIONS',
'Access-Control-Allow-Methods': 'GET,HEAD,POST,PUT,DELETE,OPTIONS',
'Access-Control-Max-Age': '86400',
};
if (