AnsweredAssumed Answered

Can We Bypass CORS Restrictions to Make API Calls

Question asked by Star LaGrasse on Jun 11, 2018
Latest reply on Nov 26, 2018 by Jeffrey Anderson

My team and I are working on a Gamification project that would use the Canvas API. We're building this in Unity, and currently using UnityWebRequest. We are hoping to make HTML5 builds that use WebGL libraries. The goal is to store these builds within Canvas courses so that students can easily access the games. The problem we are currently running into is that cross-domain restrictions don't allow us to make any API calls using GET/POST/etc requests. Specifically, we receive an error that states "No 'Access-Control-Allow-Origin' header is present on the requested resource". We know that schools could have the ability to enable this on their canvas instances, but will probably resist this due to potential security issues.


Is there a way to bypass the CORS restrictions?