Kenan Christian Kenan Christian - 1 month ago 8
AngularJS Question

CORS Header Error when using Authorization Header

So this is my current code
enter image description here

When I delete the

Authorization
from the
headers
the request will be successful, and i get the response. But when I use the
Authorization
header, it will give me this error.

enter image description here

The server is using
Python Django
and using this libary for CORS Handling

EDIT 1: This is the
python
server settings










EDIT 2: Add Browser

I use Chrome Version 53.0.2785.143 m (64-bit)

EDIT 3: Postman response

Just got weird response here. When the backend guy tried from his laptop, he got the complete header. like this:
enter image description here
But when i use my laptop, i got this response:
enter image description here

Answer

Solved! It's caused by the App Enlight plugin for monitoring. When I remove it, everything works without errors :)

Comments