Closed BelKed closed 1 year ago
For me it works in Vivaldi, Chrome and Firefox. Do you have it enabled in JOSM? Does it work for you from www.osm.org?
Also works for me on Debian Bullseye + Mozilla Firefox 102.3.0esr (64-bit).
I found it's a CORS issue
It is a server responsibility to handle CORS properly. In this case it is JOSM who is a server.
Do you have it enabled in JOSM?
Yes :D If I didn't have it enabled, it wouldn't be able to open links from Firefox and Opera...
Does it work for you from www.osm.org?
Sadly, not. I tried it before, and I just forgot to mention that...
Does it work for you from www.osm.org?
Sadly, not. I tried it before, and I just forgot to mention that...
Then I am afraid we can't do nothing in the code. Maybe ask for support on osm_sk@googlegroups.com.
Every time I click the Edit in JOSM button, the error
Operation error: TypeError: Load failed
is displayed.The console (from Safari) shows the following errors:
So this is the related line: https://github.com/FreemapSlovakia/freemap-v3-react/blob/97e6cd4123a8652b71e311433bbfcbd641af1c75/src/processors/openInExternalAppProcessor.ts#L129
Weird is that only some browsers I've tested (Chrome, Brave and Safari) are affected. On Firefox and Opera, it works just fine (the area is loaded in JOSM without any problems).
System info: macOS Monterey 12.6 Browsers info:
16.1
1.45.113
– Chromium: 107.0.5304.62 (Official Build) (x86_64)106.0.5249.119
(Official Build) (x86_64)107.0b6
(64-bit version)92.0.4561.33
(x86_64)After some research, I found it's a CORS issue (or something related). However, after more than two hours, I haven't found a workaround for this issue :(