Я хотел попробовать работать с Evernote API. Как указано в
документации, я создал developer token, с документации скопировал я и код:
const Evernote = require("evernote");
var developerToken = "S=here-is-my-dev-token1234";
var client = new Evernote.Client({token: developerToken});
// Set up the NoteStore client
var noteStore = client.getNoteStore();
// Make API calls
noteStore.listNotebooks(function(notebooks) {
for (var i in notebooks) {
console.log("Notebook: " + notebooks[i].name);
}
});
Все крашиться с такой ошибкой:
Access to fetch at 'https://sandbox.evernote.com//edam/user' from origin 'http://localhost:8080' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
POST https://sandbox.evernote.com//edam/user net::ERR_FAILED
Не могу понять, что же это может быть.