mirror of
https://github.com/HeyPuter/puter.git
synced 2026-07-08 08:12:15 +00:00
Add PUT and DELETE to preflight allowed methods (#3278)
This commit is contained in:
committed by
GitHub
parent
e2174a14cf
commit
30432b931a
@@ -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 (
|
||||
|
||||
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user