allow PATCH and DELETE CORS

This commit is contained in:
Ben Allfree 2022-12-25 01:49:00 +00:00
parent 014cc063df
commit 9bfddb279d

View File

@ -16,7 +16,7 @@ proxy.on('error', (e) => {
const server = createServer(options, async (req, res) => {
const headers = {
'Access-Control-Allow-Origin': '*' /* @dev First, read about security */,
'Access-Control-Allow-Methods': 'OPTIONS, POST, GET',
'Access-Control-Allow-Methods': 'OPTIONS, POST, GET, PATCH, DELETE',
'Access-Control-Max-Age': 2592000, // 30 days
'Access-Control-Allow-Headers': `authorization,content-type`,
}