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?
BTW, its not really a CORS restriction, its a same-origin restriction. Cross-Origin Resource Sharing (CORS) is a mechanism for allowing cross-origin. A good explanation of it is at: Cross-Origin Resource Sharing (CORS) - HTTP | MDN