Skip to content
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

CSP for iframe usage in e.g. outline #132

Open
Farnsi opened this issue Nov 28, 2023 · 3 comments
Open

CSP for iframe usage in e.g. outline #132

Farnsi opened this issue Nov 28, 2023 · 3 comments
Labels

Comments

@Farnsi
Copy link

Farnsi commented Nov 28, 2023

Try to add CSP-Header with variable DRAWIO_CSP_HEADER frame-ancestors 'self' https://myserver.xyz;, or frame-ancestors *;
but none seems to change anything.

Did somebody have an idea?

Add Diagram in Outline works, but as soon as i click "create" i got the error:

 INFO SecurityError undefined undefined undefined DOMException: Failed to execute 'showSaveFilePicker' on 'Window': Cross origin sub frames aren't allowed to show a file picker.
    at App.showSaveFilePicker (https://myserver.xyz/js/app.min.js:13026:288)
    at App.createFile (https://myserver.xyz/js/app.min.js:13056:158)
    at https://myserver.xyz/js/app.min.js:11253:435
    at EditorUi.pickFolder (https://myserver.xyz/js/app.min.js:12029:6)
    at App.pickFolder (https://myserver.xyz/js/app.min.js:13101:364)
    at J (https://myserver.xyz/js/app.min.js:11253:402)
    at https://myserver.xyz/js/app.min.js:11275:353
    at HTMLButtonElement.<anonymous> (https://myserver.xyz/js/app.min.js:196:249)

drawio-outline

@BigTows
Copy link

BigTows commented Jan 29, 2024

Same issue, image: 23.0.2.
DRAWIO_CSP_HEADER goes no effect.

@davidjgraph
Copy link

Please write as a full bug report.

Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. See the FAQ for more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants