ticinum-aerospace / leaflet-wms-header

Custom headers on Leaflet TileLayer WMS
BSD 2-Clause "Simplified" License
27 stars 28 forks source link

Wrong header parse #12

Closed hitokiri closed 2 years ago

hitokiri commented 4 years ago

I am using this extension, but when trying to send the header, image

this appears on the server side.

'access-control-request-headers': 'authorization',

it should look like this : image

Note: this part was modified to work only with TILDE

image

khaledboka commented 3 years ago

@hitokiri Hello, I know it seems really late to reply, but I just found out that this is a "CORS" error

In my case, I tried using Postman, and the request worked just fine

Then I tried to fix the CORS headers issue from Nginx (my current proxy server) it has been solved for good

ticinum-aerospace commented 2 years ago

It's a CORS issue, not related with leaflet