Skip to content

Commit 583bcf6

Browse files
Merge pull request #15 from stackai/add-referrerpolicy-origin
add referrerpolicy origin
2 parents c1febc0 + 3b324fa commit 583bcf6

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/Stack.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ const Stack = forwardRef(function Stack({
9393
src={project}
9494
id="responsiveIframe"
9595
className="chatbot-container"
96+
referrerPolicy="origin"
9697
allow="microphone"
9798
style={{
9899
position: fixed ? 'fixed' : 'static',

src/vanilla-stackai.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ function initializeStack() {
4545
iframe.style.width = IFRAME_WIDTH_MOBILE;
4646
iframe.style.height = IFRAME_HEIGHT_MOBILE;
4747
iframe.setAttribute('allow', 'microphone');
48+
iframe.setAttribute('referrerpolicy', 'origin');
4849

4950
document.body.appendChild(iframe);
5051

0 commit comments

Comments
 (0)