mirror of
https://github.com/pockethost/pockethost.git
synced 2025-07-04 03:42:29 +00:00
CORS PUT fix
This commit is contained in:
parent
dc52f95f11
commit
4e49b47c7d
@ -16,7 +16,7 @@ proxy.on('error', (e) => {
|
|||||||
const server = createServer(options, async (req, res) => {
|
const server = createServer(options, async (req, res) => {
|
||||||
const headers = {
|
const headers = {
|
||||||
'Access-Control-Allow-Origin': '*' /* @dev First, read about security */,
|
'Access-Control-Allow-Origin': '*' /* @dev First, read about security */,
|
||||||
'Access-Control-Allow-Methods': 'OPTIONS, POST, GET, PATCH, DELETE',
|
'Access-Control-Allow-Methods': 'OPTIONS, POST, GET, PATCH, DELETE, PUT',
|
||||||
'Access-Control-Max-Age': 2592000, // 30 days
|
'Access-Control-Max-Age': 2592000, // 30 days
|
||||||
'Access-Control-Allow-Headers': `authorization,content-type`,
|
'Access-Control-Allow-Headers': `authorization,content-type`,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user