Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some security (meta) headers #162

Open
304NotModified opened this issue Mar 1, 2021 · 6 comments
Open

Add some security (meta) headers #162

304NotModified opened this issue Mar 1, 2021 · 6 comments

Comments

@304NotModified
Copy link
Member

Although it seems to not be possible in Github pages it would be nice if we could add some (meta) headers.

See report of nlog-project.org

image

vs Github.com

image

@304NotModified
Copy link
Member Author

Maybe use a cloudflare proxy: https://seankilleen.com/2016/12/now-running-on-cloudflare/

@304NotModified
Copy link
Member Author

Not sure if headers are possible then: https://blog.cloudflare.com/secure-and-fast-github-pages-with-cloudflare/

There are some things we can’t do; GitHub Pages doesn’t let us set custom headers, which unfortunately means we can’t do HTTP/2 Server Push right now.

(Ok old post, but dunno why a proxy can't add additional headers)

@MichelZ
Copy link

MichelZ commented May 20, 2022

It actually can. I just tested it with GH pages and added the headers X-Frame-Options / X-Content-Type-Options...

image
image

@304NotModified
Copy link
Member Author

It actually can. I just tested it with GH pages and added the headers X-Frame-Options / X-Content-Type-Options..

Where do you add those headers? In Github itself?

@MichelZ
Copy link

MichelZ commented May 20, 2022

Where do you add those headers? In Github itself?

Sorry, I should have been more clear. I meant cloudflare is able to set headers when proxying GH pages (e.g. your article from above is wrong - you CAN set headers in cloudflare)

@304NotModified
Copy link
Member Author

Ah thx. Im not sure if those headers have that much value to move to cloudflare.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants