diff options
| author | 2024-08-23 16:39:19 +0200 | |
|---|---|---|
| committer | 2024-08-23 16:39:19 +0200 | |
| commit | 3c2167d60b22032956e39fa536cc7684126a5b54 (patch) | |
| tree | 40d59c2ef5c25e015f5c663e76007a63147e5423 /p/scripts/global_view.js | |
| parent | ca28c90f8bf1603594a1489bdeefd2d72e7e18bb (diff) | |
Charset for JSON exchanges (#6710)
Apply some minor recommendations from Snyk scanner
Diffstat (limited to 'p/scripts/global_view.js')
| -rw-r--r-- | p/scripts/global_view.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/p/scripts/global_view.js b/p/scripts/global_view.js index f131c4202..9ee9397cd 100644 --- a/p/scripts/global_view.js +++ b/p/scripts/global_view.js @@ -49,7 +49,7 @@ function load_panel(link) { const req2 = new XMLHttpRequest(); req2.open('POST', b.formAction, false); - req2.setRequestHeader('Content-Type', 'application/json'); + req2.setRequestHeader('Content-Type', 'application/json; charset=utf-8'); req2.send(JSON.stringify({ _csrf: context.csrf, })); |
