Adding HTTP security headers when using NGINX Home Assistant SSL proxy

I’m using Home Assistant OS with the NGINX Home Assistance SSL proxy add-on. Everything is working as expected and now I’d like to add the following HTTP security headers.

  • Content-Security-Policy
  • X-Frame-Options
  • X-Content-Type-Options
  • Referrer-Policy
  • Permissions-Policy

I’ve reviewed the documentation and tried a few things, but have been unsuccessful.

Can anyone steer me in the right direction of how to go about using this add-on and adding HTTP security headers?

A year later, but where you able to figure this out?

This post addressed solved it for me