{"id":12039,"date":"2022-03-15T16:03:41","date_gmt":"2022-03-15T20:03:41","guid":{"rendered":"http:\/\/local.brightwhiz\/?p=12039"},"modified":"2022-03-15T16:03:43","modified_gmt":"2022-03-15T20:03:43","slug":"error-with-permissions-policy-header-parse-of-permissions-policy-failed","status":"publish","type":"post","link":"http:\/\/local.brightwhiz\/error-with-permissions-policy-header-parse-of-permissions-policy-failed\/","title":{"rendered":"Error with Permissions-Policy header: Parse of permissions policy failed [Solved]"},"content":{"rendered":"\n

You may have rightly implemented the Permissions policy on your web server and got this in your console “Error with Permissions-Policy header: Parse of permissions policy failed because of errors reported by structured header parser.”<\/p>\n\n\n\n

That is a sign that your implementation of that header is incorrect. Therefore, in this article, we will help you rectify the above issue and explain the solution.<\/p>\n\n\n\n

The above error is related to the new Permissions-Policy HTTP<\/a> header that is implemented as a replacement to the existing Feature-Policy header which is used to handle the client permissions and other important features.<\/p>\n\n\n\n

The Permissions-Policy HTTP header uses a structured syntax giving the website more strict controls and applying restrictions on which origins get to access some features on the end user’s devices.<\/p>\n\n\n\n

Fixing the Error with Permissions-Policy Header<\/h2>\n\n\n\n

This is the format of the header that can be placed in the Apache<\/a> apache.conf<\/code>, the .htaccess<\/code> file, or in the Nginx nginx.conf<\/code> file.<\/p>\n\n\n\n

Permissions-Policy: fullscreen=(self "https:\/\/example.com" "https:\/\/another.example.com"),\n    geolocation=*, camera=(), microphone=(), gyroscope=(), payment=("https:\/\/*.paypal.com")<\/code><\/pre>\n\n\n\n

This differs from the older Feature-Policy header as shown here.<\/p>\n\n\n\n

Feature-Policy: fullscreen 'self' https:\/\/example.com https:\/\/another.example.com;\ngeolocation ; camera 'none'; microphone 'none'; gyroscope 'none'; payment https:\/\/.paypal.com<\/code><\/pre>\n\n\n\n

These are the differences to look out for that might be the cause of errors in the Permissions-Policy header when trying to use the Feature-Policy syntax.<\/p>\n\n\n\n

  • self<\/code> and *<\/code> are tokens, and don’t need to be quoted.<\/li>
  • Origins<\/code> are strings representing domain names and should be enclosed within double quotes.<\/li>
  • Allow lists are normally enclosed in parentheses and can be omitted if there is only a single element.<\/li>
  • Decalarations are separated by a comma (,<\/code>) and not semi-colons (;<\/code>).<\/li><\/ul>\n\n\n\n

    Conclusion<\/h2>\n\n\n\n

    Hopefully going forward you won’t encounter the “Error with Permissions-Policy header: Parse of permissions policy failed because of errors reported by structured header parser.” message after you set your Permissions-Policy header correctly.<\/p>\n","protected":false},"excerpt":{"rendered":"

    You may have rightly implemented the Permissions policy on your web server and got this in your console “Error with Permissions-Policy header: Parse of permissions policy failed because of errors…<\/p>\n","protected":false},"author":1,"featured_media":12041,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,23,9,16],"tags":[58,193,313,400,433,471,526,573,635,638],"yoast_head":"\n[Solved] Error with Permissions-Policy header: Parse of permissions policy<\/title>\n<meta name=\"description\" content=\"Fixing the Error with Permissions-Policy header: Parse of permissions policy failed because of errors reported by structured header parser.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/local.brightwhiz\/error-with-permissions-policy-header-parse-of-permissions-policy-failed\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[Solved] Error with Permissions-Policy header: Parse of permissions policy\" \/>\n<meta property=\"og:description\" content=\"Fixing the Error with Permissions-Policy header: Parse of permissions policy failed because of errors reported by structured header parser.\" \/>\n<meta property=\"og:url\" content=\"http:\/\/local.brightwhiz\/error-with-permissions-policy-header-parse-of-permissions-policy-failed\/\" \/>\n<meta property=\"og:site_name\" content=\"Brightwhiz.com\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/brightwhiz\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-03-15T20:03:41+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-03-15T20:03:43+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2022\/03\/Error-with-Permissions-Policy-header.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"680\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Michael Bright\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@brightwhizmag\" \/>\n<meta name=\"twitter:site\" content=\"@brightwhizmag\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Michael Bright\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\/\/local.brightwhiz\/error-with-permissions-policy-header-parse-of-permissions-policy-failed\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/local.brightwhiz\/error-with-permissions-policy-header-parse-of-permissions-policy-failed\/\"},\"author\":{\"name\":\"Michael Bright\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32\"},\"headline\":\"Error with Permissions-Policy header: Parse of permissions policy failed [Solved]\",\"datePublished\":\"2022-03-15T20:03:41+00:00\",\"dateModified\":\"2022-03-15T20:03:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/local.brightwhiz\/error-with-permissions-policy-header-parse-of-permissions-policy-failed\/\"},\"wordCount\":284,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/local.brightwhiz\/#organization\"},\"image\":{\"@id\":\"http:\/\/local.brightwhiz\/error-with-permissions-policy-header-parse-of-permissions-policy-failed\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2022\/03\/Error-with-Permissions-Policy-header.jpg\",\"keywords\":[\"Apache\",\"DevOps\",\"InfoSec\",\"Nginx\",\"Optimization\",\"Programming\",\"Security\",\"Systems Administration\",\"Web\",\"Web Development\"],\"articleSection\":[\"Articles\",\"Guides\",\"How To\",\"Technology\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/local.brightwhiz\/error-with-permissions-policy-header-parse-of-permissions-policy-failed\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/local.brightwhiz\/error-with-permissions-policy-header-parse-of-permissions-policy-failed\/\",\"url\":\"http:\/\/local.brightwhiz\/error-with-permissions-policy-header-parse-of-permissions-policy-failed\/\",\"name\":\"[Solved] Error with Permissions-Policy header: Parse of permissions policy\",\"isPartOf\":{\"@id\":\"http:\/\/local.brightwhiz\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/local.brightwhiz\/error-with-permissions-policy-header-parse-of-permissions-policy-failed\/#primaryimage\"},\"image\":{\"@id\":\"http:\/\/local.brightwhiz\/error-with-permissions-policy-header-parse-of-permissions-policy-failed\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2022\/03\/Error-with-Permissions-Policy-header.jpg\",\"datePublished\":\"2022-03-15T20:03:41+00:00\",\"dateModified\":\"2022-03-15T20:03:43+00:00\",\"description\":\"Fixing the Error with Permissions-Policy header: Parse of permissions policy failed because of errors reported by structured header parser.\",\"breadcrumb\":{\"@id\":\"http:\/\/local.brightwhiz\/error-with-permissions-policy-header-parse-of-permissions-policy-failed\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/local.brightwhiz\/error-with-permissions-policy-header-parse-of-permissions-policy-failed\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/local.brightwhiz\/error-with-permissions-policy-header-parse-of-permissions-policy-failed\/#primaryimage\",\"url\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2022\/03\/Error-with-Permissions-Policy-header.jpg\",\"contentUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2022\/03\/Error-with-Permissions-Policy-header.jpg\",\"width\":1280,\"height\":680,\"caption\":\"Error with Permissions-Policy\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/local.brightwhiz\/error-with-permissions-policy-header-parse-of-permissions-policy-failed\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/local.brightwhiz\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Error with Permissions-Policy header: Parse of permissions policy failed [Solved]\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/local.brightwhiz\/#website\",\"url\":\"http:\/\/local.brightwhiz\/\",\"name\":\"Brightwhiz.com\",\"description\":\"Best Tech guides, Tutorials, and News\",\"publisher\":{\"@id\":\"http:\/\/local.brightwhiz\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/local.brightwhiz\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"http:\/\/local.brightwhiz\/#organization\",\"name\":\"Brightwhiz\",\"url\":\"http:\/\/local.brightwhiz\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png\",\"contentUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png\",\"width\":706,\"height\":135,\"caption\":\"Brightwhiz\"},\"image\":{\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/brightwhiz\/\",\"https:\/\/x.com\/brightwhizmag\",\"https:\/\/instagram.com\/bright_whiz\/\",\"https:\/\/www.pinterest.com\/sobbayi\/\",\"https:\/\/www.youtube.com\/channel\/UC6sCdP_d_RiTIM7ErFT-PSQ\"]},{\"@type\":\"Person\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32\",\"name\":\"Michael Bright\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g\",\"contentUrl\":\"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g\",\"caption\":\"Michael Bright\"},\"sameAs\":[\"https:\/\/sobbayi.com\"],\"url\":\"http:\/\/local.brightwhiz\/author\/sobbayiadmin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[Solved] Error with Permissions-Policy header: Parse of permissions policy","description":"Fixing the Error with Permissions-Policy header: Parse of permissions policy failed because of errors reported by structured header parser.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/local.brightwhiz\/error-with-permissions-policy-header-parse-of-permissions-policy-failed\/","og_locale":"en_US","og_type":"article","og_title":"[Solved] Error with Permissions-Policy header: Parse of permissions policy","og_description":"Fixing the Error with Permissions-Policy header: Parse of permissions policy failed because of errors reported by structured header parser.","og_url":"http:\/\/local.brightwhiz\/error-with-permissions-policy-header-parse-of-permissions-policy-failed\/","og_site_name":"Brightwhiz.com","article_publisher":"https:\/\/www.facebook.com\/brightwhiz\/","article_published_time":"2022-03-15T20:03:41+00:00","article_modified_time":"2022-03-15T20:03:43+00:00","og_image":[{"width":1280,"height":680,"url":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2022\/03\/Error-with-Permissions-Policy-header.jpg","type":"image\/jpeg"}],"author":"Michael Bright","twitter_card":"summary_large_image","twitter_creator":"@brightwhizmag","twitter_site":"@brightwhizmag","twitter_misc":{"Written by":"Michael Bright","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/local.brightwhiz\/error-with-permissions-policy-header-parse-of-permissions-policy-failed\/#article","isPartOf":{"@id":"http:\/\/local.brightwhiz\/error-with-permissions-policy-header-parse-of-permissions-policy-failed\/"},"author":{"name":"Michael Bright","@id":"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32"},"headline":"Error with Permissions-Policy header: Parse of permissions policy failed [Solved]","datePublished":"2022-03-15T20:03:41+00:00","dateModified":"2022-03-15T20:03:43+00:00","mainEntityOfPage":{"@id":"http:\/\/local.brightwhiz\/error-with-permissions-policy-header-parse-of-permissions-policy-failed\/"},"wordCount":284,"commentCount":0,"publisher":{"@id":"http:\/\/local.brightwhiz\/#organization"},"image":{"@id":"http:\/\/local.brightwhiz\/error-with-permissions-policy-header-parse-of-permissions-policy-failed\/#primaryimage"},"thumbnailUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2022\/03\/Error-with-Permissions-Policy-header.jpg","keywords":["Apache","DevOps","InfoSec","Nginx","Optimization","Programming","Security","Systems Administration","Web","Web Development"],"articleSection":["Articles","Guides","How To","Technology"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/local.brightwhiz\/error-with-permissions-policy-header-parse-of-permissions-policy-failed\/#respond"]}]},{"@type":"WebPage","@id":"http:\/\/local.brightwhiz\/error-with-permissions-policy-header-parse-of-permissions-policy-failed\/","url":"http:\/\/local.brightwhiz\/error-with-permissions-policy-header-parse-of-permissions-policy-failed\/","name":"[Solved] Error with Permissions-Policy header: Parse of permissions policy","isPartOf":{"@id":"http:\/\/local.brightwhiz\/#website"},"primaryImageOfPage":{"@id":"http:\/\/local.brightwhiz\/error-with-permissions-policy-header-parse-of-permissions-policy-failed\/#primaryimage"},"image":{"@id":"http:\/\/local.brightwhiz\/error-with-permissions-policy-header-parse-of-permissions-policy-failed\/#primaryimage"},"thumbnailUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2022\/03\/Error-with-Permissions-Policy-header.jpg","datePublished":"2022-03-15T20:03:41+00:00","dateModified":"2022-03-15T20:03:43+00:00","description":"Fixing the Error with Permissions-Policy header: Parse of permissions policy failed because of errors reported by structured header parser.","breadcrumb":{"@id":"http:\/\/local.brightwhiz\/error-with-permissions-policy-header-parse-of-permissions-policy-failed\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/local.brightwhiz\/error-with-permissions-policy-header-parse-of-permissions-policy-failed\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/local.brightwhiz\/error-with-permissions-policy-header-parse-of-permissions-policy-failed\/#primaryimage","url":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2022\/03\/Error-with-Permissions-Policy-header.jpg","contentUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2022\/03\/Error-with-Permissions-Policy-header.jpg","width":1280,"height":680,"caption":"Error with Permissions-Policy"},{"@type":"BreadcrumbList","@id":"http:\/\/local.brightwhiz\/error-with-permissions-policy-header-parse-of-permissions-policy-failed\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/local.brightwhiz\/"},{"@type":"ListItem","position":2,"name":"Error with Permissions-Policy header: Parse of permissions policy failed [Solved]"}]},{"@type":"WebSite","@id":"http:\/\/local.brightwhiz\/#website","url":"http:\/\/local.brightwhiz\/","name":"Brightwhiz.com","description":"Best Tech guides, Tutorials, and News","publisher":{"@id":"http:\/\/local.brightwhiz\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/local.brightwhiz\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"http:\/\/local.brightwhiz\/#organization","name":"Brightwhiz","url":"http:\/\/local.brightwhiz\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/","url":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png","contentUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png","width":706,"height":135,"caption":"Brightwhiz"},"image":{"@id":"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/brightwhiz\/","https:\/\/x.com\/brightwhizmag","https:\/\/instagram.com\/bright_whiz\/","https:\/\/www.pinterest.com\/sobbayi\/","https:\/\/www.youtube.com\/channel\/UC6sCdP_d_RiTIM7ErFT-PSQ"]},{"@type":"Person","@id":"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32","name":"Michael Bright","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/local.brightwhiz\/#\/schema\/person\/image\/","url":"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g","contentUrl":"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g","caption":"Michael Bright"},"sameAs":["https:\/\/sobbayi.com"],"url":"http:\/\/local.brightwhiz\/author\/sobbayiadmin\/"}]}},"_links":{"self":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/posts\/12039"}],"collection":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/comments?post=12039"}],"version-history":[{"count":0,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/posts\/12039\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/media\/12041"}],"wp:attachment":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/media?parent=12039"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/categories?post=12039"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/tags?post=12039"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}