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