CodeIgniter-JWT-Sample icon indicating copy to clipboard operation
CodeIgniter-JWT-Sample copied to clipboard

CORS Error: The request has been blocked because of the CORS policy

Open soumsena opened this issue 5 years ago • 2 comments

Hi, I need help please! GET http://localhost/CodeIgniter-JWT-Sample/auth/token Error: CORS request rejected: http://localhost/CodeIgniter-JWT-Sample/auth/token Request Headers User-Agent: PostmanRuntime/7.26.9 Accept: / Cache-Control: no-cache Postman-Token: 2dd347b8-e2e8-4632-9921-b42c15c12b7a

image

soumsena avatar Dec 16 '20 23:12 soumsena

so why

qisecn avatar Jul 22 '22 11:07 qisecn

the server does not sent: status_code(200); postman needs this

after all api server needs to set a header: "Access-Control-Allow-Origin", "*"

mehdi-sadighian avatar Oct 27 '22 08:10 mehdi-sadighian