lundi 27 novembre 2017

Authorization header issue with safari

Safari is not sending authorization to the server on the production server. This works perfectly on Firefox, chrome and opera.

      fetch(url, {
     "Content-type": "application/json",
     Authorization: "Bearer sample_token"

    }).then(res => console.log(res))
    .catch(err => console.log(err));




Aucun commentaire:

Enregistrer un commentaire