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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user