1
0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2025-12-14 18:45:06 +00:00

Add some security headers

This commit is contained in:
Cadence Ember
2020-05-30 23:07:32 +12:00
parent ea81b945ce
commit d3c6598e50
5 changed files with 24 additions and 8 deletions

View File

@@ -0,0 +1,6 @@
const params = new URLSearchParams(window.location.search)
if (params.has("status")) {
params.delete("status")
params.delete("message")
history.replaceState(null, "", "?" + params.toString())
}