Skip to content

Cross-Original Read Blocking Problem #3

@mst94

Description

@mst94

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions