How to override Nginx headers?

Hello, I am using different plugins that make changes to .htaccess file however those changes do not take place dueas by default the headers will be overwriten by nginx. How do I avoid this from happening and what changes do I make?