satyarohith / sift

Sift is a routing and utility library for Deno Deploy.
https://deno.land/x/sift
MIT License
170 stars 14 forks source link

Fix removing csp from files served from github #32

Closed sylc closed 3 years ago

sylc commented 3 years ago

Github csp header is not removed when file are served using the serveStatic function. this has been described in https://github.com/satyarohith/sift/issues/29#issuecomment-886202911

use newResponse in serveStatic