Skip to main content
Adobe Employee
Jun 14, 2024 8:24 AM UTC
Solved

To create a nonce as a data element in core extension in launch

What we are trying to accomplish is to use Adobe Target on this site/page: https://www.marriottvacationclubs.com/s/special-offers
It is built as a single page application in Salesforce
I know that we need to utilize Adobe Target v2. It seems we have an issue with the CSP

 

What we would like help with is how to create a nonce as a data element to be used in the Core Extension
Do we need additional development support to create a nonce that Adobe Target can read?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
kandersen-1
kandersen-1Accepted solution
Community Advisor and User Group Leader
Jun 14, 2024 10:25 AM UTC

Hi @vidhyaak1 

 

I believe you'll need to have developers to generate the nonce server-side and from there embed it in the HTML in a way so that it can be accessed by JavaScript, so that you can pick it up in an data element. e.g. 

<meta name="csp-nonce" content="<generated-nonce>">

 

Then from the data element you can pass it in as an mbox parameter.

1 reply

kandersen-1
Community Advisor and User Group Leader
kandersen-1Community Advisor and User Group LeaderAccepted solution
Community Advisor and User Group Leader
Jun 14, 2024 10:25 AM UTC

Hi @vidhyaak1 

 

I believe you'll need to have developers to generate the nonce server-side and from there embed it in the HTML in a way so that it can be accessed by JavaScript, so that you can pick it up in an data element. e.g. 

<meta name="csp-nonce" content="<generated-nonce>">

 

Then from the data element you can pass it in as an mbox parameter.

Translate