wenjie
wenjie6mo ago

The iframe element only supports the mar...

hi @Myles Scolnick nice to meet you here , We just discussed in this issue https://github.com/marimo-team/marimo/issues/1489
GitHub
The iframe element only supports the marimo.app · Issue #1489 · mar...
Describe the bug I can open https://marimo.app/l/aojjhb?embed=true using iframe in marimo.new, but cannot open any other url except marimo.app This online notebook demonstrates the problem : https:...
9 Replies
Myles Scolnick
Myles Scolnick6mo ago
@wenjie in your response - you mentioned cross-origin-resource-policy. it should be cross-origin-embedder-policy for the second line
wenjie
wenjieOP6mo ago
oh it's my mistake , After the modification, it still seems invalid. This is my nginx configuration
No description
Myles Scolnick
Myles Scolnick6mo ago
there seems to be an extra " at the end of cross-origin you should be able to run curl -s -I https://snap.codelab.club/snap.html and if you see your headers present, you've got the right config
wenjie
wenjieOP6mo ago
thanks for your suggestion! I will try it
wenjie
wenjieOP6mo ago
No description
wenjie
wenjieOP6mo ago
curl -s -I https://snap.codelab.club/snap.html showed: ``HTTP/1.1 200 Connection established HTTP/2 200 server: nginx date: Wed, 29 May 2024 14:24:11 GMT content-type: text/html content-length: 2466 last-modified: Sun, 19 May 2024 04:43:46 GMT vary: Accept-Encoding etag: "66498382-9a2" expires: Wed, 29 May 2024 14:24:10 GMT cache-control: no-cache cache-control: no-cache, max-age=0, no-store accept-ranges: bytes
Myles Scolnick
Myles Scolnick6mo ago
so your headers are not present - meaning your configuration is probably incorrect still
wenjie
wenjieOP6mo ago
Hmm, confusing question. I will check the nginx configuration again. Thanks for your help. I'm guessing it's some weird error with my nginx that I can't fix for now, but thanks for your help !
Roland Tannous
Roland Tannous5mo ago
@wenjie did you ever figure this out? ok i solved this but the reason for my error was different i was trying to always map company.marimo to the server's dynamically allocated ip address where marimo is running