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

Cross-Original Read Blocking Problem #3

Open
mst94 opened this issue Jan 19, 2021 · 0 comments
Open

Cross-Original Read Blocking Problem #3

mst94 opened this issue Jan 19, 2021 · 0 comments

Comments

@mst94
Copy link

mst94 commented Jan 19, 2021

Hello,

when using the leaflet DWD map and clicking many times randomnly on the map, after some time a Cross-Original Read Blocking Problem occurs.

The console says:
jquery.min.js:4 Cross-Origin Read Blocking (CORB) blocked cross-origin response https://maps.dwd.de/geoproxy_warnungen/service/?REQUEST=GetFeatureInfo&SERVICE=WMS&SRS=EPSG%3A4326&STYLES=&TRANSPARENT=true&VERSION=1.1.1&FORMAT=image%2Fpng&BBOX=6.4273101159228405%2C47.4355191531953%2C18.05084527217284%2C50.324422739309384&HEIGHT=400&WIDTH=1058&LAYERS=Warnungen_Gemeinden_vereinigt&QUERY_LAYERS=Warnungen_Gemeinden_vereinigt&INFO_FORMAT=text%2Fjavascript&PROPERTYNAME=EVENT%2CONSET%2CEXPIRES%2CSENT&FEATURE_COUNT=50&X=420.9719503373341&Y=192&callback=parseResponse&_=1611062981598 with MIME type text/plain. See https://www.chromestatus.com/feature/5629709824032768 for more details.

The url request gives back an XML answer, I think this may cause the problem. I noticed the long float X-value and the rounded Y value in the URL request. After changing the X to an integer, the answer is JSON and seems right.

Stack trace of the console:

send @ jquery.min.js:4 ajax @ jquery.min.js:4 getFeatureInfoJsonp @ warnmod_leaflet-betterwms.js:39 fire @ Events.js:190 fireDOMEvent @ Map.js:1440 handleDOMEvent @ Map.js:1397 c @ DomEvent.js:92

I use the most recent leaflet version 1.7.1.

Thanks in advance

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

No branches or pull requests

1 participant