Skip to content

Commit

Permalink
Merge pull request #981 from SkillsFundingAgency/CON-3664_Allow-inlin…
Browse files Browse the repository at this point in the history
…e-script-for-GTM

[CON-3664] Allow inline scripts, consistent with other applications a…
  • Loading branch information
narendranogothu authored Jun 28, 2021
2 parents fadd583 + ff0c9ef commit 036fffc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Employer/Employer.Web/Startup.Configure.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,11 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, IOptions
"https://*.zopim.com",
"https://*.rcrsv.io");

//Google tag manager uses inline scripts when administering tags. This is done on PREPROD only
//Google tag manager uses inline scripts when administering tags
s.UnsafeInline();

if (env.IsEnvironment(EnvironmentNames.PREPROD))
{
s.UnsafeInline();
s.UnsafeEval();
}
})
Expand Down

0 comments on commit 036fffc

Please sign in to comment.