Feature suggestion: Allow setting security headers

Currently GitHub Pages provides no way to set security headers. How about adding support for a .headers file which you can use to set security headers?

Specifically, the following security headers should be settable:

  • Content-Security-Policy
  • X-Content-Type-Options
  • X-Frame-Options
  • X-XSS-Protection
1 Like

Hi there! :wave:

Thanks for this feedback! We’re always working to improve GitHub and the GitHub Support Community, and we consider every suggestion we receive.

Would you mind submitting this through our official product feedback form so that our product team can track your request?