diff options
author | Gibheer <gibheer+git@zero-knowledge.org> | 2019-01-24 09:18:46 +0100 |
---|---|---|
committer | Gibheer <gibheer+git@zero-knowledge.org> | 2019-01-24 09:18:46 +0100 |
commit | a9634bbcaa2377e07a47b9ff1f05dfda39336a9d (patch) | |
tree | 284820efdd5ac88b3420ac6608f9e4fa955e13da /cmd/monfront | |
parent | 6a5c0b92bd12f4fb06780b67f5f8019de3c827f0 (diff) |
monfront - fix referer
Somewhen in the last couple years, something called a referer policy was
introduced. This avoided the correct relocation after any action was
sent.
Now with the fix, the redirect properly works.
Diffstat (limited to 'cmd/monfront')
-rw-r--r-- | cmd/monfront/main.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/monfront/main.go b/cmd/monfront/main.go index a4855d8..15d2661 100644 --- a/cmd/monfront/main.go +++ b/cmd/monfront/main.go @@ -236,7 +236,7 @@ func checkAction(w http.ResponseWriter, r *http.Request) { log.Printf("could not adjust checks %#v: %s", checks, err) return } - ref, found := r.Header["Referrer"] + ref, found := r.Header["Referer"] if found { w.Header()["Location"] = ref } else { @@ -541,6 +541,7 @@ var ( <html> <head> <title>{{ .Title }}</title> + <meta name="referrer" content="same-origin"> <link rel="shortcut icon" href="/static/favicon" /> <style type="text/css"> * { font-size: 100%; } |