문제

I use ajax to send/receive some data with jQuery, In chrome I will get some errors when I use Ajax and I searched in StackOverflow and I found I should add header('Access-Control-Allow-Origin: *'); and because I have a custom header in my jQuery code, I added header('Access-Control-Allow-Headers: Origin, X-TokenCode'); to my php code.

but after adding this headers my sessions not work!

what should I do ?

UPDATE:

Domain name is the same

올바른 솔루션이 없습니다

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top