You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use evernote sandbox with my developer token. I copy-paste the code from the docs:
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);
}
});
It throws an exception: 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
So does the code in the README of this repository:
const Evernote = require("evernote");
var developerToken = "S=here-is-my-dev-token1234";
var client = new Evernote.Client({token: developerToken});
var userStore = client.getUserStore();
userStore.getUser().then(function(user) {
console.log(user);
});
system: Windows 10
node: 12.16.3
npm: 16.14.4
evernote module: 2.0.5
The text was updated successfully, but these errors were encountered:
I want to use evernote sandbox with my developer token. I copy-paste the code from the docs:
It throws an exception:
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
So does the code in the README of this repository:
system: Windows 10
node: 12.16.3
npm: 16.14.4
evernote module: 2.0.5
The text was updated successfully, but these errors were encountered: