DEV Community

Discussion on: X-headers, what and why?

Collapse
 
jordanfinners profile image
Jordan Finneran

Hey Alex, you can set the headers yourself, depending on how you are serving up your website depends how you do this.
If you are using express js you can use a library like npmjs.com/package/helmet to help set them.
If you are using nextjs you can do something like nextjs.org/docs/api-reference/next...
If you are serving up a file from blob storage (e.g. S3 in AWS or Blob Storage in Azure) you often set these headers by using a CDN infront of the files like so docs.microsoft.com/en-us/azure/cdn...

Collapse
 
alexandriastech profile image
alex ➡️ web dev journey 👩🏽‍💻🔍

Thank you for helping! I haven't gotten that far yet in my journey since I only know HTML and CSS right now; I use Github for my web pages. I'll keep the resources bookmarked, thanks again!

Thread Thread
 
jordanfinners profile image
Jordan Finneran

Yes its not possible to do it with Github Pages at the moment 😊