Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
feat: Support response headers in File protocol handler #16098
Description of Change
This adds support for response headers to
My specific use case for this is to set a CSP for pages served from local content rather than HTTPS: setting the header by intercepting the request with the
I've also changed how this works a little to make it more consistent (hopefully) with the other handlers (ie. convert the dict to a
Note that I've documented this in the text as the callback param in the list has
Test failures don't appear to be related to my changes: one of them is:
(so, cc @MarshallOfSound)
Notes: Add response header support to
We use semantic commit messages to streamline the release process. Before your pull request can be merged, you should update your pull request title to start with a semantic prefix.
Examples of commit messages with semantic prefixes:
Things that will help get your PR across the finish line:
We get a lot of pull requests on this repo, so please be patient and we will get back to you as soon as we can.