nfl / react-helmet

A document head manager for React
MIT License
17.38k stars 661 forks source link

React Helmet to add security headers in response #477

Open sjabiulla opened 5 years ago

sjabiulla commented 5 years ago

Is there a provision to use react-helmet to set security headers in the response of react js app?

What I understand from react-helmet is it's just used to render html tags in output, If I'm not mistaken ! , It would be really great If we can use the same module and get security headers set in the response

For more info : Issue details

illuminist commented 4 years ago

react-helmet is for altering html head element. I cannot see how it would work with http header.

For setting http header, it should be done in server code when it serves the response.

olivierlacan commented 4 years ago

Confusion with this Helmet: https://helmetjs.github.io/