don't allow other content-type headers
This commit is contained in:
+1
-1
@@ -203,7 +203,7 @@ async function serve_static(request, env) {
|
|||||||
}
|
}
|
||||||
const blob = await response.blob()
|
const blob = await response.blob()
|
||||||
if(url.pathname.endsWith('js')){
|
if(url.pathname.endsWith('js')){
|
||||||
headers.append('content-type','text/javascript')
|
headers.set('content-type','text/javascript')
|
||||||
}
|
}
|
||||||
return newResponse(blob)
|
return newResponse(blob)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user