Referencing the Canvas SDK
Getting Context in Your Canvas App
Alternatives to Cookies for User Tracking
Debugging in a Canvas App
Using the <select> Tag in a Canvas App
Lightning Component Code Examples
Canvas Limits
Previous Versions
The Canvas SDK is available on GitHub, and you have two options for referencing it from your canvas app.
For example, here’s what the include statement looks like if you host the SDK on your own Web server:
1<script type="text/javascript" src="/sdk/js/canvas-all.js"></script>Here’s what the include statement looks like if you reference the hosted SDK:
1<script type="text/javascript" src="https://<instance>.salesforce.com/canvas/sdk/js/68.0/canvas-all.js"></script>The ability to reference the SDK on the Salesforce server is useful when you want to include one of the SDK files in a Web app or from a Visualforce page.
See Also