L
L
lil_web2019-10-20 13:24:02
API
lil_web, 2019-10-20 13:24:02

How to get local access to your remote server if there is CSRF protection?

I am rewriting the site from Jaquery to React on local. To get data, I make a fetch request to an existing site, but I get an error: CSRF alert.
What do I need to do or ask the customer to get access?
The customer offers to give me a page on the site for requests, but it seems to me that it will be less convenient to develop.
Tell me, please, how to proceed.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
rPman, 2019-10-20
@lil_web

CSRF is protection when working with a site from a browser!
If you work from your programming language, your platform, etc. then you can set all the necessary cookies and the session identifier for the requests, which you can take from the browser by going to the original site.
Well, in general - the problems that the site creates for you are the problems of the customer, let him solve them as it suits YOU.
To be honest, I do not see the problem, the solution I described above

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question