Skip to content

Commit

Permalink
Merge pull request #198 from Geoportail-Luxembourg/GITLAB-34-no_cors_…
Browse files Browse the repository at this point in the history
…mode

GITLAB-34: no-cors header
  • Loading branch information
rmichaelis authored Feb 27, 2025
2 parents 1cef809 + ff61b1c commit 60a5e85
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/services/ol-layer/ol-layer-wms.helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,14 @@ class OlLayerWmsHelper {
FORMAT: imageType,
LAYERS: layers,
},
...((url !== undefined && url !== null) || proxyUrlHelper.remoteProxyUrl
})
/*
These requests should be done with no-cors mode, if we want to keep the cookies for the authentication
Investigate why this code was here and if it is still needed
...((url !== undefined && url !== null) || proxyUrlHelper.remoteProxyUrl
? { crossOrigin: 'anonymous' }
: {}),
})

*/
const olLayer = new ImageLayer({
properties: {
'olcs.extent': getOlcsExtent(),
Expand Down

0 comments on commit 60a5e85

Please sign in to comment.