Solved: nginx Error with Permissions-Policy header: Parse of permissions policy failed because of errors reported by structured header parser

I am using Nginx server and with that, I am using an angular application. The application is running fine but in the console, I got the following error

Error with Permissions-Policy header: Parse of permissions policy failed because of errors reported by structured header parser

To solve this error I added following code in my nginx configuration.

location ^~ / {

    proxy_pass http://127.0.0.1:4200;
    add_header Strict-Transport-Security 'max-age=31536000; includeSubDomains; preload';

    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection 'upgrade';
    proxy_set_header Host $host;

    proxy_http_version 1.1;
    proxy_cache_bypass $http_upgrade;

}

This solved my issue.

Published by

Purab

I am Purab from India, Software development is my profession and teaching is my passion. Programmers blog dedicated to the JAVA, Python, PHP, DevOps and Opensource Frameworks. Purab's Github Repo Youtube Chanel Video Tutorials Connect to on LinkedIn

Leave a Reply

Your email address will not be published.