ovh / node-ovh

Node.js wrapper for the OVH APIs
http://ovh.github.io/node-ovh
Other
129 stars 27 forks source link

Cors issue when call api #42

Open Silbad opened 3 years ago

Silbad commented 3 years ago

Hello I have a cors issue when I call the api :

Access to fetch at 'https://eu.api.ovh.com/1.0/me' from origin 'http://localhost:8081' has been blocked by CORS policy: 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.

appKey, appSecret and consumerKey are ok. How can I enable it ? I use nuxt.js. Thanks