D
D
dmytrotus2021-02-25 21:50:55
React
dmytrotus, 2021-02-25 21:50:55

How to send request on axios with SameSite=None header?

Hi all.
I am making an application in which I send bundle.js to another domain, the application opens in another domain.
Backend on laravel, front on reactjs.
Cors policy is set, post get requests go through fine.
But there is one problem, I can not send cookies if I make a request from another domain.
The Internet browser writes that the problem is that SameSite=LAX (I'm adding a screenshot)
6037ef2e1697b174521291.png
I need to change SameSite to None and I can't find anywhere how to do it in the outgoing request.
I spied that this is possible, for example, here paypal indicates samesite=none in the attributes.
Here is the screenshot.
6037f17888fc9994864644.png
Let me know if anyone knows how to solve this problem.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Valery, 2021-02-26
@vmakhnyuk

SameSite=NoneIt is important to set during installationsecure=true

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question