Skip to content

Commit

Permalink
Add csrf_token to map filter test request
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Apr 23, 2024
1 parent 2d614b6 commit 04ccee1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/MapFilter.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import ToggleSwitch from '../components/widgets/ToggleSwitch';
import ConfigUtils from '../utils/ConfigUtils';
import LayerUtils from '../utils/LayerUtils';
import LocaleUtils from '../utils/LocaleUtils';
import MiscUtils from '../utils/MiscUtils';

import './style/MapFilter.css';

Expand Down Expand Up @@ -224,7 +225,8 @@ class MapFilter extends React.Component {
WIDTH: 10,
HEIGHT: 10,
BBOX: "-0.5,-0.5,0.5,0.5",
LAYERS: Object.keys(layerExpressions).filter(layer => wmsLayers.includes(layer)).join(",")
LAYERS: Object.keys(layerExpressions).filter(layer => wmsLayers.includes(layer)).join(","),
csrf_token: MiscUtils.getCsrfToken()
};
if (wmsParams.FILTER) {
reqParams.FILTER = wmsParams.FILTER;
Expand Down

0 comments on commit 04ccee1

Please sign in to comment.