Skip to content
Discussion options

You must be logged in to vote

The origin that you register to take part in an origin trial must match the origin of the document in which you make the JavaScript call that uses an origin trial feature.

If you want to use trial features from code that's included via a script element on a site with a different origin, you'll need to check the "Third-party matching" checkbox on the trial registration page. For example, you might want to use the Attribution Reporting API via <script src='https://criteo.example/.../ar.js'> embedded on publisher.example. In that case, register for "Third-party matching" and inject the token via script in ar.js. (See example at ot-3p.glitch.me.)

To use trial features in code in an iframe, yo…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by lbdvt
Comment options

You must be logged in to vote
1 reply
@samdutton
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants