1
0
Fork 0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2026-03-01 18:31:35 +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
No known key found for this signature in database
GPG key ID: 128B99B1B74A6412
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())
}