-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Embedding within a cross origin isolated document #650
Comments
Hi @tareqdayya
If you need to embed a typeform you need to use either Embed SDK or iframe directly.
I am not sure I understand your use case. Can you please provide further explain or provide an example? Thanks. |
Hi @mathio, thanks for the prompt response
Correct, We're using the
Absolutely, the document we're trying to embed the typeform iframe in is served with the following headers:
That means that any attempt to embed iframes inside this document will be blocked by the browser: It would be a bit difficult for me to explain why we do this as it's a lengthy subject, this guide on cross origin isolation however does a good job of summing it up. The problem should be solved if the iframe is served along with the following response headers:
|
Thank you. I will raise this with the team responsible for this and get back to you. |
Hi, @mathio After further investigation, it seems setting the Setting those headers could break existing embedded subresources on the typeform iframe, e.g. a youtube embed, so proceed with caution. One potential solution would be to not use iframes and use a script instead. A script only requires a |
I am sorry to hear this. I am afraid we will not be able to add those headers. Unfortunately we do not support any other approach than iframe. The JavaScript app that displays the form can not be rendered outside of our infrastructure. |
Hello,
I'm trying to embed typeform in a cross-origin isolated document. The request triggered to fetch the iframe doc is blocked by the browser as a result.
One solution would be for you to add the following header to the response document:
Cross-Origin-Resource-Policy: cross-origin
Another is to add the typeform survey without an iframe (using html, js, and css), but I couldn't find a way to do that through the docs so it seems like it's not possible at the moment.
Thanks
The text was updated successfully, but these errors were encountered: