N
N
Nikita Niki2020-09-07 09:53:54
PHP
Nikita Niki, 2020-09-07 09:53:54

How to send requests to apache server from localhost?

Good afternoon, I need help. There is a project, apache + codeigniter, the project implements authorization through cookies (a session is created that is stored in the database (I can’t say for sure, because I’m quite far from the backend ...) the server is deployed on a remote machine, now everything is on the local network) , as far as I understand from an external resource - (for example, localhost: 3000 or some kind of node js server with a different host and port) I can’t access the server’s api, since apparently a new session is starting, which, accordingly, is not in The database and therefore just an empty string with the 200th status is returned to me.
This is what I see in my cookie request.
5f55d6ce0da0d637330428.png

If you make a request from the server itself, then the data is returned probably because gmcrm_session response and request are the same.
5f55d74eb8cc3587660765.png

Maybe I don’t understand something, I really need your help for a long time I can’t solve this issue.
also
set SameSIte option to none via apache header set-cookies but the option applied only to gmcrm_session.
For session_login and hash, I tried to set it through setcookie (php 7), something breaks and I can’t get authorized with the correct login and password (I noticed that the option was applied, but every time it throws me to log in again)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question