-
Notifications
You must be signed in to change notification settings - Fork 18
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
Tiles from openstreetmap fail to load #51
Comments
This is the same problem as in #49. The R shinylive app
This was originally put in place so that the Now, though, webR can run in Shinylive without COI (with some limitations) and, in fact, currently does so by default on https://shinylive.io. So, we can now loosen this restriction a little. In fact, I recently discovered that there may be a way we can still support both modes and additionally support embedding further content (like the map tiles in this example) with a minor tweak to the headers:
IIUC switching to Credentialless means that requests with cookie-based authentication using webR/Shinylive may be lost, but I don't believe anyone is currently doing this. I will need to research this some more before making any changes, but my initial thoughts are that we can indeed improve this, both for Shinylive and the webR REPL. I'll report back here again after some more testing. |
Believe this is the same issue posted on Stack Overflow with complete MWE. I am eager to learn how this solution could be implemented. |
Here is a simple shiny app with a map built with
leaflet
package. The shiny app works fine. I canrunApp()
from any R session and view it in multiple browsers. When exported usingliveshiny
and launched either byhttpuv::runStaticServer()
or byLive Preview
in VSCode, the external resources for the leaflet map do not load. The png tiles get errorFailed to load resource: net::ERR_BLOCKED_BY_RESPONSE.NotSameOriginAfterDefaultedToSameOriginByCoep
. I have tested in 5 different browsers.I'm posting this as bug because it seems to be an error on how the static shiny app built with
shinylive
communicates or "authenticates" with sites asking for resources. But I may be wrong...I know very little about how resources get denied.The text was updated successfully, but these errors were encountered: