P
P
pavelkunyavskiy2018-02-06 16:28:43
HTTP headers
pavelkunyavskiy, 2018-02-06 16:28:43

Is it possible to fake the Origin and Refer headers?

Is it possible?
For example, from specialized software like Postman.
Here, for example, I made a check on the NodeJS server side

if (!req.headers.origin || !req.headers.referer) {
    res.cookie('message', 'fuck you, hacker', {maxAge: 600000, httpOnly: true})
    res.send('fuck you, hacker')
    console.log('fuck you, hacker')
  }

But does it make sense if the title can be faked?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
InoMono, 2018-02-06
@InoMono

Of course, you can fake any headers in the web client.
But why?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question