chore: remove dead code (#2083)

As per
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer, which
links to the interesting https://en.wikipedia.org/wiki/HTTP_referer, the
incorrect `referer` is actually correct when using headers.

I noticed this when frantically trying to keep up with your flood of PRs
while trying to get the base path stuff working. The header coming in
does indeed use `referer`.

@marvinhagemeister
This commit is contained in:
Reed von Redwitz
2023-11-28 21:53:16 +00:00
committed by GitHub
parent d62d22a4fc
commit 1643d6d1d6
-5
View File
@@ -483,11 +483,6 @@ export class ServerContext {
baseRoute,
methods: {
default: async (req, ctx) => {
if (
req.headers.get("referrer")?.includes("/_frsh/error_overlay")
) {
throw new Error("fail");
}
const resp = await internalRender({
request: req,
context: ctx,