Hi team,
I followed the API doc “Write pin value via PUT”
I’m using jQuery Ajax to make a PUT request as below:
$.ajax({
url: ‘https://blynk-cloud.com/auth_token/update/V126’,
type: ‘PUT’,
data: [“1”],
contentType: ‘application/json; charset=utf-8’,
success: function () {
}
});
});
But getting error in browser console:
OPTIONS …auth_token/update/V126 404 (Not Found)
Failed to load …auth_token/update/V126: Response for preflight does not have HTTP ok status.
Note: The API works fine with Postman.
Please advise. Thanks.