The Instructure Community will enter a read-only state on November 22, 2025 as we prepare to migrate to our new Community platform in early December.
Read our blog post for more info about this change.
Found this content helpful? Log in or sign up to leave a like!
Hi
I am trying to make API calls via the browser but I get CORS errors
Cross-Origin Resource Sharing (CORS) - HTTP | MDN
Is there a way to enable CORS on my Canvas instance?
Thanks
Hi @mhaidar ,
Weclome to the community.
What is the API call you're trying to make?
CORS changes aren't necessary for Canvas API. Make sure you're hitting your own instance and not the generic api at canvas.instructure.com
Are you trying to access a resource from outside Canvas, on your own server?
In addition to carroll-ccsd's questions, which language are you using for the API call? There are some libraries which may help deal with CORS requests.
Community helpTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign inTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign in