Skip to content

Commit

Permalink
♻️ Use 1p OT token in FIE (#36270)
Browse files Browse the repository at this point in the history
  • Loading branch information
calebcordry committed Oct 7, 2021
1 parent 6b73b94 commit cdcddef
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions extensions/amp-a4a/0.1/secure-frame.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import {TOKEN_VALUE} from '#ads/google/a4a/utils';

import {createElementWithAttributes, escapeHtml} from '#core/dom';
import {dict} from '#core/types/object';

Expand Down Expand Up @@ -28,6 +26,9 @@ const sandboxVals =
'allow-scripts ' +
'allow-top-navigation';

const TOKEN_VALUE_1P =
'AzKSXqpxJ3GJ4xUcmPM97hZVJG1MQdsBvJDfIuF7mkjVveoiTyt11U3+HIw4U2VdqQ3CNKMUoohEGtHUnS3h8wAAAACBeyJvcmlnaW4iOiJodHRwczovL2FtcHByb2plY3Qub3JnOjQ0MyIsImZlYXR1cmUiOiJDb252ZXJzaW9uTWVhc3VyZW1lbnQiLCJleHBpcnkiOjE2MzQwODMxOTksImlzU3ViZG9tYWluIjp0cnVlLCJ1c2FnZSI6InN1YnNldCJ9';

/**
* Create the starting html for all FIE ads. If streaming is supported body will be
* piped in later.
Expand All @@ -53,7 +54,7 @@ export const createSecureDocSkeleton = (url, sanitizedHeadElements, body) =>
default-src 'none';
style-src ${fontProviderAllowList} 'unsafe-inline';
">
<meta http-equiv="origin-trial" content=${TOKEN_VALUE}>
<meta http-equiv="origin-trial" content=${TOKEN_VALUE_1P}>
${sanitizedHeadElements}
</head>
<body>${body}</body>
Expand Down

0 comments on commit cdcddef

Please sign in to comment.