mirror of
https://github.com/pockethost/pockethost.git
synced 2025-05-19 21:36:40 +00:00
allow PATCH and DELETE CORS
This commit is contained in:
parent
014cc063df
commit
9bfddb279d
@ -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`,
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user