Add check if app is running in third- or first-party environment
See original GitHub issueTried embedding excalidraw inside an frame and file loading and saving started throwing an error in Chrome but works on firefox.
Failed to execute 'showOpenFilePicker' on 'Window': Cross origin sub frames aren't allowed to show a file picker.
On further inspection, it looks like the underlying error is because of using showOpenFilePicker
being used by this library.
Tried to repro on codesandbox here - https://codesandbox.io/s/exciting-hertz-jzjeg?file=/src/index.js (works on firefox but not on chrome)
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (7 by maintainers)
Top Results From Across the Web
Control which third-party & internal apps access Google ...
In App access control, click Manage Third-Party App Access. For Configured apps, click Add app. Choose OAuth App Name or Client ID, Android,...
Read more >First-Party and Third-Party Applications - Auth0
Applications can be classified as either first-party or third-party, which refers to the ownership of the application. The main difference relates to who ......
Read more >First-Party Data, Second-Party Data, and Third-Party Data
First -party data is the information you collect directly from your audience or customers. The first-party definition includes: Data from ...
Read more >Manage app setup policies in Microsoft Teams
Pin apps · Sign in to Teams admin center and access Teams apps > Setup policies. · Select Add. · Enter a name...
Read more >What is First Party Data? | Using 1st Party Data for Marketing
Example: The company can use first-party data including web or mobile app behavior, in-store or call center interactions, purchase history, and loyalty status ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks @apnerve, was able to reproduce and now integrated directories/files fully in the app 😃.
@tomayac nothing wrong with it whatsoever, just when I see a simple example not working in CodeSandbox that’s usually a good prompt to improve my understanding of a dependency, so I start there first.
Thanks both for your help!
In case you meant the example I added in the issue, it doesn’t take into account the click and hence doesn’t work. Have bumped the version to ^0.16.0 and added a click handler and it works fine