Refused to set unsafe header "Date" AngularJS

Viewed 4662

I am not able to add Date in the header, every time I add the date I get the error. Refused to set unsafe header "Date"

This is My code;

 $http({
      method: 'POST',
      url: 'https:......',
      data: message,
      headers: {'Content-Type': 'application/x-www-form-urlencoded',
                                'XReference':reference,                                  
                                'Authorization':auth,
                                'Date':unixtimestamp                                 

       }
 })
3 Answers

Try changing "Date" to "Request-Date"

Related