zengm-games / zengm

Basketball GM (and other ZenGM games) are single-player sports management simulation games, made entirely in client-side JavaScript.
https://zengm.com
Other
349 stars 127 forks source link

Loading URL via VPN #427

Closed radxrico closed 1 year ago

radxrico commented 1 year ago

When using a VPN with certain links I keep getting the following error:

image

It works fine with github links, but dropbox and google so far it will say that. I'll have to disable my VPN wait for my regular connection, then load, then reapply my VPN, wait for that to connect again etc..

Any ideas why?

dumbmatter commented 1 year ago

Importing URLs only works if the Access-Control-Allow-Origin header is appropriately set (probably to *), which it is on some websites like certain parts of GitHub and Dropbox. If you find a URL that works only without the VPN, the VPN must somehow be interfering with the headers in such a way to disturb that setting.

radxrico commented 1 year ago

Is there a fix other than disabling the VPN to bypass this?

dumbmatter commented 1 year ago

Probably not for you right now. Fix would either be to have the VPN not mess with the headers (up to the VPN company), or to have me add a server side proxy on my end so the headers don't matter (I'd like to do this eventually, but not sure when I will).

dumbmatter commented 1 year ago

Of course you can always download the file and then upload it to BBGM, rather than using the URL.