Write pin value via PUT using jQuery Ajax getting error: "Response for preflight does not have HTTP ok status."

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.

What happens if you use http rather than https?

Pete.

In the URL… did you use your auth token or left auth_token in there?