Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

CSP Nonce in Core Extension

Avatar

Level 1

Hi All, just wondered... does anyone out there have much experience of using the CSP Nonce option in Core extension? Anyone managed to get it working?

 

I have heard that there are issues with NONCEs and Single Page Apps (and that some browsers only have limited support). Would be really interesting to hear how others have got on...

 

Best

 

 

2 Replies

Avatar

Level 3

Hi @MattBlake , I don't know, you are solved it not. Recently I have added the nonce element on core extension. It is actually a painless process. Here are main steps that you need to do.

 

  1. Create a data element that references where the nonce is located within your data layer.
  2. Configure the Core Extension and specify which data element you used.
  3. Publish your data element and Core Extension changes.
  4. Use the same nonce value in HTML meta tag or HTTP Header.

Here is the documentation related to it. Documentation

 

 I didn't find any issues with single page applications or browsers yet.