Skip to content

Commit

Permalink
Merge pull request #983 from SkillsFundingAgency/CON-3709_Csp-and-gtm
Browse files Browse the repository at this point in the history
enable unsafe eval in csp header to  test GTM CSP issues.
  • Loading branch information
reachash authored Jul 26, 2021
2 parents 9d6e028 + 258ae4d commit b1ec76f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/Employer/Employer.Web/Startup.Configure.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, IOptions
"*.googletagmanager.com/",
"*.postcodeanywhere.co.uk/",
"https://tagmanager.google.com",
"https://www.tagmanager.google.com/",
"https://www.tagmanager.google.com/",
"https://*.zdassets.com",
"https://*.zendesk.com",
"wss://*.zendesk.com",
Expand All @@ -101,11 +101,7 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, IOptions

//Google tag manager uses inline scripts when administering tags
s.UnsafeInline();

if (env.IsEnvironment(EnvironmentNames.PREPROD))
{
s.UnsafeEval();
}
s.UnsafeEval();
})
.FontSources(s =>
s.Self()
Expand Down

0 comments on commit b1ec76f

Please sign in to comment.