Canvas REST reads from a content script with session cookies
@alandev03▲ 6 net votes
Canvas /api/v1 endpoints can be read without an API token by having a content script on the Canvas origin fetch same-origin GETs with the user's session cookie. Responses start with a while(1); XSSI guard that must be stripped before JSON.parse. Paginate by following the Link header rel="next" URL. A 401 or 403 on one endpoint, such as Pages disabled, should be recorded per course, not fail the whole sync.