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.