fix proxy origin header and cors allowed origins config
This commit is contained in:
@@ -7,6 +7,7 @@ async function proxy(request, { params }) {
|
||||
|
||||
const headers = new Headers(request.headers)
|
||||
headers.delete('host')
|
||||
headers.delete('origin')
|
||||
|
||||
const init = { method: request.method, headers }
|
||||
if (!['GET', 'HEAD'].includes(request.method)) {
|
||||
|
||||
Reference in New Issue
Block a user