# Content Security Policy violation when loading the Report.html

**URL:** <https://community.postman.com/t/content-security-policy-violation-when-loading-the-report-html/78813>\
**Category:** Help Hub\
**Tags:** newman-reports\
**Created:** [April 18, 2025, 12:02pm UTC](https://community.postman.com/t/content-security-policy-violation-when-loading-the-report-html/78813 "2025-04-18T12:02:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![achinta.paul65](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@achinta.paul65](https://community.postman.com/u/achinta.paul65)\
**Post date:** [April 18, 2025, 12:02pm UTC](https://community.postman.com/t/content-security-policy-violation-when-loading-the-report-html/78813/1 "2025-04-18T12:02:17Z")

</div>

Hi All,

I am fairly new to the newman-reporter-htmlextra hence do not have much information/knowledge about it. But while working for one of the projects where newman-reporter-htmlextra report is used, I see that the html report loads but some of the functionality does not work. I am seeing this issue after I removed the unsafe-inline tag from the CSP (content security policy) configuration in response header. unsafe-inline tag is removed, as it was violating the CSP validation. I see the following error attached screen shot. Any help would be great.

 ![CSP issue](https://us1.discourse-cdn.com/getpostman/original/3X/d/9/d9a90bb9bff8d59e756f32197eda721e185c614d.png)

Thanks,  
Paul

---

<div class="post-metadata">

**Author:** ![achinta.paul65](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@achinta.paul65](https://community.postman.com/u/achinta.paul65)\
**Post date:** [April 18, 2025, 1:19pm UTC](https://community.postman.com/t/content-security-policy-violation-when-loading-the-report-html/78813/2 "2025-04-18T13:19:01Z")

</div>

@danny-dainton any help on this would be great.

Thanks  
Paul

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [April 18, 2025, 1:28pm UTC](https://community.postman.com/t/content-security-policy-violation-when-loading-the-report-html/78813/3 "2025-04-18T13:28:03Z")

</div>

Hey 👋🏼

The template that creates the final report uses a number of different external/3rd party tools, it pulls the code in for these via a CDN reference in the template html.

> <https://github.com/DannyDainton/newman-reporter-htmlextra/blob/main/lib%2Fdashboard-template.hbs#L9>

> <https://github.com/DannyDainton/newman-reporter-htmlextra/blob/main/lib%2Fdashboard-template.hbs#L1240>

From the error, it looks like datatables is the library that’s causing it. That’s the part that creates the test results table in each request.

You could take a copy of the template, update the reference and then use that template in the reporter command.

```auto
--reporter-htmlextra-template <path-to-template-file>

```

The project has it’s own repo, please feel free to raise an issue on there.

> **[GitHub - DannyDainton/newman-reporter-htmlextra: A HTML reporter for Postman's Command Line...](https://github.com/DannyDainton/newman-reporter-htmlextra)**
>
> A HTML reporter for Postman's Command Line Runner, Newman. Includes Non Aggregated Runs broken down by Iterations, Skipped Tests, Console Logs and the handlebars helpers module for better custom templates.

You can also run your Collection using the Postman CLI which has it’s own built-in HTML reporter that provides a very similar output as my reporter.

> **[Explore Postman's command-line companion | Postman Docs](https://learning.postman.com/docs/postman-cli/postman-cli-overview/)**
>
> Postman is a collaboration platform for API development. Postman's features simplify each step of building an API and streamline collaboration so you can create better APIs—faster.
