{"id":26594,"date":"2023-06-29T06:16:00","date_gmt":"2023-06-29T10:16:00","guid":{"rendered":"https:\/\/plumrocket.com\/docs\/?p=26594"},"modified":"2023-06-29T06:43:35","modified_gmt":"2023-06-29T10:43:35","slug":"magento-2-csp-reports-v1-x-configuration","status":"publish","type":"post","link":"https:\/\/plumrocket.com\/docs\/magento-csp-reports\/v1\/configuration","title":{"rendered":"Magento 2 CSP Reports v1.x Configuration"},"content":{"rendered":"\n<p>In this article, you will find step-by-step instructions on how to properly configure the&nbsp;<a href=\"\/magento-csp-reports\">Magento 2 CSP Reports extension<\/a>. Please follow this guide after installing the plugin.<\/p>\n\n\n\n<h2 id=\"h-configuring-magento-2-csp-reports-extension\">Configuring Magento 2 CSP Reports Extension<\/h2>\n\n\n\n<p>In the main Magento menu, go to the&nbsp;<strong>Plumrocket<\/strong>&nbsp;tab &gt; select&nbsp;<strong>CSP Reports&nbsp;<\/strong>&gt;&nbsp;<strong>Configuration<\/strong>.<\/p>\n\n\n\n<h3 id=\"h-general\">General<\/h3>\n\n\n\n<div class=\"wp-block-group pr-notice pr-notice-info\"><div class=\"wp-block-group__inner-container\">\n<p class=\"pr-notice-title\">Step-by-step guide:<\/p>\n\n\n\n<ol><li>&nbsp;\u201c<strong>Enable<\/strong>\u201c: set the option to&nbsp;<em>Yes<\/em>&nbsp;to enable the CSP Reports extension on your Magento 2 store.<\/li><\/ol>\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"420\" src=\"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2023\/06\/magento-csp-reports-extension-configration-1-1024x420.png\" alt=\"\" class=\"wp-image-26597\" srcset=\"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2023\/06\/magento-csp-reports-extension-configration-1-1024x420.png 1024w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2023\/06\/magento-csp-reports-extension-configration-1-300x123.png 300w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2023\/06\/magento-csp-reports-extension-configration-1-768x315.png 768w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2023\/06\/magento-csp-reports-extension-configration-1.png 1206w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 id=\"h-main-settings\">Main Settings<\/h3>\n\n\n\n<div class=\"wp-block-group pr-notice pr-notice-info\"><div class=\"wp-block-group__inner-container\">\n<p class=\"pr-notice-title\">Step-by-step guide:<\/p>\n\n\n\n<ol><li>&#8220;<strong>Storefront Mode<\/strong>&#8220;: this option allows you to define how Magento should respond to the Content Security Policy violations on your website&#8217;s storefront. The extension collects, stores, and sorts violations in the <a href=\"https:\/\/plumrocket.com\/docs\/wp-admin\/post.php?post=26594&amp;action=edit#csp-reports\">CSP Reports<\/a> grid.<ul><li><em>Report Only<\/em>: in this mode, Magento only reports policy violations, without taking any actions. This mode is useful for debugging and allows configuring policies to work according to your custom code. <\/li><li><em>Restrict<\/em>: in this mode, Magento reports and acts on policy violations. It&#8217;s recommended that you switch to the Restrict mode after the policies have been configured.<\/li><\/ul><\/li><li>&#8220;<strong>Admin Mode<\/strong>&#8220;: set the CSP mode to <em>Report Only<\/em> or <em>Restrict<\/em> separately for your website&#8217;s admin area.<\/li><li>&#8220;<strong>Erase Outdated Reports After (days)<\/strong>&#8220;: specify the number of days after which the reports will be automatically removed from the <a href=\"https:\/\/plumrocket.com\/docs\/wp-admin\/post.php?post=26594&amp;action=edit#csp-reports\">CSP Reports<\/a> grid. This way, resolved or outdated CSP reports will not clutter up the grid.<\/li><li>Click &#8220;<strong>Save Config<\/strong>&#8221; to save your configurations.<\/li><\/ol>\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"323\" src=\"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2023\/06\/magento-csp-reports-extension-configration-2-1024x323.png\" alt=\"\" class=\"wp-image-26598\" srcset=\"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2023\/06\/magento-csp-reports-extension-configration-2-1024x323.png 1024w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2023\/06\/magento-csp-reports-extension-configration-2-300x95.png 300w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2023\/06\/magento-csp-reports-extension-configration-2-768x242.png 768w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2023\/06\/magento-csp-reports-extension-configration-2.png 1206w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 id=\"h-csp-reports-grid\">CSP Reports Grid<\/h2>\n\n\n\n<p>To view CSP Reports, please go to the&nbsp;<strong>Plumrocket<\/strong>&nbsp;tab in the main Magento menu &gt; select&nbsp;<strong>CSP Reports&nbsp;<\/strong>&gt;&nbsp;<strong>Reports<\/strong>. Alternatively, you can find reports in the <strong>System <\/strong>-&gt; <strong>Tools <\/strong>-&gt; <strong>CSP Reports<\/strong> tab.<\/p>\n\n\n\n<div class=\"wp-block-group pr-notice pr-notice-info\"><div class=\"wp-block-group__inner-container\">\n<p class=\"pr-notice-title\">Step-by-step guide:<\/p>\n\n\n\n<ol><li>In the CSP Reports grid, you can review the following details for each potential policy violation:<ul><li>ID, Host, and Violated Directive<\/li><\/ul><ul><li>Action (<em>Reported <\/em>or <em>Restricted<\/em>)<\/li><li>Report Count (how many times the violation was detected)<\/li><li>Last Report date<\/li><li>Page URL where the violation was detected<\/li><li>Resource URL that violated the policy<\/li><\/ul><\/li><\/ol>\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"509\" src=\"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2023\/06\/magento-csp-reports-extension-configration-3-1024x509.png\" alt=\"\" class=\"wp-image-26599\" srcset=\"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2023\/06\/magento-csp-reports-extension-configration-3-1024x509.png 1024w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2023\/06\/magento-csp-reports-extension-configration-3-300x149.png 300w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2023\/06\/magento-csp-reports-extension-configration-3-768x382.png 768w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2023\/06\/magento-csp-reports-extension-configration-3.png 1206w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>In this article, you will find step-by-step instructions on how to properly configure the&nbsp;Magento 2 CSP Reports extension. Please follow this guide after installing the plugin. Configuring Magento 2 CSP Reports Extension In the main Magento menu, go to the&nbsp;Plumrocket&nbsp;tab &gt; select&nbsp;CSP Reports&nbsp;&gt;&nbsp;Configuration. General Main Settings CSP Reports Grid To view CSP Reports, please go &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/plumrocket.com\/docs\/magento-csp-reports\/v1\/configuration\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Magento 2 CSP Reports v1.x Configuration&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[376],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v17.2 (Yoast SEO v17.2) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Configure Magento 2  CSP Reports Extension v1.x Magento 2 CSP Reports v1.x Configuration - Plumrocket Documentation<\/title>\n<meta name=\"description\" content=\"In this article, you will find step-by-step instructions on how to properly configure the&nbsp;Magento 2 CSP Reports extension. Please follow this guide\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/plumrocket.com\/docs\/magento-csp-reports\/v1\/configuration\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Magento 2 CSP Reports v1.x Configuration\" \/>\n<meta property=\"og:description\" content=\"In this article, you will find step-by-step instructions on how to properly configure the&nbsp;Magento 2 CSP Reports extension. Please follow this guide\" \/>\n<meta property=\"og:url\" content=\"https:\/\/plumrocket.com\/docs\/magento-csp-reports\/v1\/configuration\" \/>\n<meta property=\"og:site_name\" content=\"Plumrocket Documentation\" \/>\n<meta property=\"article:published_time\" content=\"2023-06-29T10:16:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-06-29T10:43:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2023\/06\/magento-csp-reports-extension-configration-1-1024x420.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Plumrocket\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Configure Magento 2  CSP Reports Extension v1.x Magento 2 CSP Reports v1.x Configuration - Plumrocket Documentation","description":"In this article, you will find step-by-step instructions on how to properly configure the&nbsp;Magento 2 CSP Reports extension. Please follow this guide","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":"https:\/\/plumrocket.com\/docs\/magento-csp-reports\/v1\/configuration","og_locale":"en_US","og_type":"article","og_title":"Magento 2 CSP Reports v1.x Configuration","og_description":"In this article, you will find step-by-step instructions on how to properly configure the&nbsp;Magento 2 CSP Reports extension. Please follow this guide","og_url":"https:\/\/plumrocket.com\/docs\/magento-csp-reports\/v1\/configuration","og_site_name":"Plumrocket Documentation","article_published_time":"2023-06-29T10:16:00+00:00","article_modified_time":"2023-06-29T10:43:35+00:00","og_image":[{"url":"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2023\/06\/magento-csp-reports-extension-configration-1-1024x420.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Written by":"Plumrocket","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/plumrocket.com\/docs\/#website","url":"https:\/\/plumrocket.com\/docs\/","name":"Plumrocket Documentation","description":"Extensions docs, troubleshootings etc.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/plumrocket.com\/docs\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https:\/\/plumrocket.com\/docs\/magento-csp-reports\/v1\/configuration#primaryimage","inLanguage":"en-US","url":"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2023\/06\/magento-csp-reports-extension-configration-1.png","contentUrl":"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2023\/06\/magento-csp-reports-extension-configration-1.png","width":1206,"height":495},{"@type":"WebPage","@id":"https:\/\/plumrocket.com\/docs\/magento-csp-reports\/v1\/configuration#webpage","url":"https:\/\/plumrocket.com\/docs\/magento-csp-reports\/v1\/configuration","name":"Magento 2 CSP Reports v1.x Configuration - Plumrocket Documentation","isPartOf":{"@id":"https:\/\/plumrocket.com\/docs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/plumrocket.com\/docs\/magento-csp-reports\/v1\/configuration#primaryimage"},"datePublished":"2023-06-29T10:16:00+00:00","dateModified":"2023-06-29T10:43:35+00:00","author":{"@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/c96fccdb89342ae6804272265723eca8"},"description":"In this article, you will find step-by-step instructions on how to properly configure the&nbsp;Magento 2 CSP Reports extension. Please follow this guide","breadcrumb":{"@id":"https:\/\/plumrocket.com\/docs\/magento-csp-reports\/v1\/configuration#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/plumrocket.com\/docs\/magento-csp-reports\/v1\/configuration"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/plumrocket.com\/docs\/magento-csp-reports\/v1\/configuration#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Magento 2 Extensions","item":"https:\/\/plumrocket.com\/magento-extensions"},{"@type":"ListItem","position":2,"name":"Magento 2 CSP Reports","item":"https:\/\/plumrocket.com\/magento-csp-reports"},{"@type":"ListItem","position":3,"name":"Documentation","item":"https:\/\/plumrocket.com\/docs\/magento-csp-reports"},{"@type":"ListItem","position":4,"name":"v1","item":"https:\/\/plumrocket.com\/docs\/magento-csp-reports\/v1"},{"@type":"ListItem","position":5,"name":"Configuration"}]},{"@type":"Person","@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/c96fccdb89342ae6804272265723eca8","name":"Plumrocket","image":{"@type":"ImageObject","@id":"https:\/\/plumrocket.com\/docs\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/10c44aa45aab391250913d982e552e53?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/10c44aa45aab391250913d982e552e53?s=96&d=mm&r=g","caption":"Plumrocket"}}]}},"_links":{"self":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/26594"}],"collection":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/comments?post=26594"}],"version-history":[{"count":4,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/26594\/revisions"}],"predecessor-version":[{"id":26605,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/26594\/revisions\/26605"}],"wp:attachment":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/media?parent=26594"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/categories?post=26594"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/tags?post=26594"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}