Skip to main content
Code42 Support

Code42 API resources supporting CORS

Applies to:
  • 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.

Use case

Your environment is configured like this:

  • You have a master server in the domain
  • You have a storage server in the domain
  • Your web server is running the domain

With CORS, the web app you develop (which runs on a server in the domain) that calls the Code42 API on servers running on the domains and will not be blocked by the default security settings of your user's browsers.

CORS use

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.

Code42 API resources that support CORS

  • AddressBookEntry
  • AuthToken
  • Cli
  • File
  • FileInfo
  • FileVersions
  • MasterLicense
  • NetworkTest
  • Ping
  • Plan
  • PlanArchiveSession
  • PlanDataKeyToken
  • PlanEvent
  • PlanSettings
  • PlanUser
  • PlanUserEviction
  • PlanUserInvitation
  • ProductLicense
  • QuickShare
  • Role
  • SsoFederation
  • SsoIdentityProvider
  • SsoMetadata
  • Storage
  • StorageAuthToken
  • User
  • UserRole

Read descriptions of these and other Code42 API resources using the API Documentation Viewer.

External resources