Answer the question
In order to leave comments, you need to log in
The server is located remotely, the client is done in the local machine, authorization by cookies, how to combine?
It is difficult to deploy a test server locally for a client-side developer, since he needs help to raise this server, there is still a lot to raise. But I shared my server in the Internet. Named it roughly.
projectName.host.ru
He has access to this page.
He develops with react.
After npm run start command. The client starts on
localhost:3000
AND makes all requests to the server via ajax. But since authorization by cookies, authorization is not saved.
It is necessary to start the client locally at the address.
projectName.host.ru:3000
and requests went to a remote server.
projectName.host.ru
How can I do that ?
Answer the question
In order to leave comments, you need to log in
It is necessary to start the client locally at the address.
projectName.host.ru:3000
and requests went to the remote server.
projectName.host.ru
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question