If your nginx is responsible for HSTS and you want to remove headers that were added by Rails this solution is for you
>= 0
Sergey Tsvetkov