question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Typeform not loading because of cross-origin isolation.

See original GitHub issue

Description

In a ReactJS application, I’m using a library that requires cross-origin isolation in order to use the SharedArrayBuffer feature. These are the headers I need to add:

Cross-Origin-Embedder-Policy: require-corp Cross-Origin-Opener-Policy: same-origin

The problem

The embedded Typeform is not loading anymore:

image

This is the error from the network activity tab in developer tools related to the Typeform resource:

To use this resource from a different origin, the server needs to specify a cross-origin resource policy in the response headers: Cross-Origin-Resource-Policy: same-site Choose this option if the resource and the document are served from the same site. Cross-Origin-Resource-Policy: cross-origin Only choose this option if an arbitrary website including this resource does not impose a security risk.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
mathiocommented, Jan 7, 2022

The change was approved by security, I will update you here when we add the header.

1reaction
mathiocommented, Nov 28, 2022

Hi @jeton-th, we’re going to close out this issue for the time being.

As you know, we’ve spoken internally about solving this and whilst we’ve tried to make headway, the solution is more complex than we’d initially thought.

We appreciate it’s something that would improve your implementation of an embed and we’ve logged the feedback so that we can continue to assess how to prioritize an improvement.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What to do if your typeform isn't working - Help Center
1. Open your typeform in Private or Incognito mode. This lets you open your typeform in a new browser window without any settings...
Read more >
A guide to enable cross-origin isolation - web.dev
This will block the loading of cross-origin resources that are not opted-in. Check that self.crossOriginIsolated returns true in console to ...
Read more >
Recaptcha V2 not working after adding COEP headers (Cross ...
On Chrome version 92 I have enabled cross origin isolation as per instructions here and added following headers to root page and wasm...
Read more >
embed-typeform/README.md at master - GitHub
Contribute to Leocardoso94/embed-typeform development by creating an ... Developing Components in Isolation ... Having problems with VS Code Debugging?
Read more >
Enable and debug cross-origin isolated - YouTube
To mitigate the risk of side-channel attacks, browsers offer an opt-in-based isolated environment called cross-origin isolated.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found