cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1422
Views
0
Helpful
3
Replies

Why do some APIs return ' No 'Access-Control-Allow-Origin' header is present' error?

ramaveer
Cisco Employee
Cisco Employee

Hi,

We are trying to hit Meraki dashboard API endpoints using NodeJS and Python. For some API endpoints we get an error saying, ' No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.' Therefore, we are unable to use these API endpoints. We noticed this error in the following endpoints,

POST https://dashboard.meraki.com/api/v0/networks/[networkId]/devices/claim

PUT https://dashboard.meraki.com/api/v0/organizations/[organizationId]/networks

DEL https://dashboard.meraki.com/api/v0/networks/[id]

We are able to hit these endpoints successfully with Postman client/cURL. Only when we try to hit them from JavaScript/Python code, we get this error.

Please let me know how to resolve this.

Thanks in advance,

Ram

3 Replies 3

plditallo
Level 5
Level 5

Ram,

If you are still experiencing the problem, try looking at an earlier post on this topic.

No 'Access-Control-Allow-Origin' on calls to apidemoeu.webex.com

Paula,

Thanks for your reply. But I'm afraid the information you provided doesn't help me resolve my issue.

--

Ram

Did you find a solution to this, i get the same errer trying to add a new admin

//Marius

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: