Skip to content

Commit

Permalink
fix: Encode OGC WFC filter to meet Chrome security requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr committed Dec 4, 2024
1 parent 0adda1e commit 76694bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/my-map/os-features.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function getFeaturesAtPoint(
proxyEndpoint: string,
supportClickFeatures: boolean,
) {
const xml = `
const xml = encodeURIComponent(`
<ogc:Filter>
<ogc:Contains>
<ogc:PropertyName>SHAPE</ogc:PropertyName>
Expand All @@ -54,7 +54,7 @@ export function getFeaturesAtPoint(
</gml:Point>
</ogc:Contains>
</ogc:Filter>
`;
`);

// Define (WFS) parameters object
const params = {
Expand Down

0 comments on commit 76694bb

Please sign in to comment.