- Code42 CrashPlan (previously CrashPlan PROe)
The Code42 API supports cross-origin resource sharing (CORS), facilitating the creation of powerful web or browser-based solutions in complex domain environments. This article explains what CORS is, why it is useful, and which resources support CORS.
CORS and the Code42 API
Cross-origin resource sharing (CORS) is a technology that that allows a web page or browser-based app to request resources that come from a non-origin domain (a domain outside the one that hosts the web server). Without the use of CORS, it would be more difficult to build browser-based apps that utilize the Code42 API. With CORS, it doesn't matter where your Code42 servers reside: your web app will be able to leverage the API endpoints just as if the servers were located on the origin domain.
CORS securely enables more flexible use of the Code42 API, and makes it easier to access Code42 API resources in a multi-domain environment. Without CORS, it would be more difficult to access resources from multiple domains using a browser or web-based applications.
When you use Code42 API resources that support CORS, no additional work is required. The cross-domain request will work without any extra effort or coding.
Your environment is configured like this:
- You have an master server in the domain foo.com
- You have a storage server in the domain bar.com
- Your web server is running the domain example.com
With CORS, the web app you develop (which runs on a server in the example.com domain) that calls the Code42 API on servers running on the domains foo.com and bar.com will not be blocked by the default security settings of your user's browsers.
Code42 API resources that support CORS
Read descriptions of these and other Code42 API resources using the API Documentation Viewer.