REST APIs for the Best of Us! - A Meteor 0.9+ package for building REST APIs https://atmospherejs.com/nimble/restivus
544
stars
117
forks
source link
Reason: CORS header ‘Access-Control-Allow-Origin’ missing #312
Open
hassansardarbangash opened 2 years ago
I am facing issue calling Remote API from localhost.
I am getting this error in browser console:
Reason: CORS request did not succeed
I am using
nimble:restivus
packagehttps://github.com/kahmali/meteor-restivus
As per documentation I am setting:
enableCors: true
in order to allow access from any origin. But no luck.
Here is my server side code:
Here is my client side code:
If I send nothing in header, the request succeed otherwise it gives error in browser console.
Can anyone help me with this?