V
V
Vladislav Aleinikov2020-09-28 18:27:22
PHP
Vladislav Aleinikov, 2020-09-28 18:27:22

Set cookie with different domain?

The task is to make a request to the server, get the cookie to write, the cookie must have the httpOnly setting and domain must be the domain of the server that was accessed and from which the response came.
Those. should be like on the screen.
setcookie and header don't work and js doesn't work with httpOnly setting enabled.
Does anyone have any ideas how this can be implemented?

5f7200a218577051116122.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
granty, 2020-09-29
@granty

What is the problem there? Open a 1x1px iframe with src= of this server. Let the server script in response send a cookie with its domain and set the httpOnly flag in it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question