I am POSTing some JSON data and adding an Authorization header. However, the request object does not have the correct authorization property. HTTP_AUTHORI
Your authorization header ('Authorization', 'testkey:') needs to be Base64 encoded and include Basic.
in python:
import base64
base64.b64encode('testkey:') # 'dGVzdGtleTo='
in javascript set your header using btoa:
'{"Authorization": "Basic ' + btoa('testkey:') + '"}'
'{"Authorization": "Basic dGVzdGtleTo="}'
In your case, the this will result in the header coming in as:
('Authorization', 'Basic dGVzdGtleTo=')