Skip to main content
Code42 Support

Code42 API resources supporting CORS

Available in:

StandardPremiumEnterprise
Small Business
Applies to:

Overview

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) allows a web page or browser-based app to request resources from a domain outside of its host domain. 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 reside at the app's home domain.

Using Code42 API resources that support CORS requires no additional work. Cross-domain requests work without any extra effort or coding.

Use case

Your environment is configured like this:

  • You have an authority 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 users' browsers.

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 (Versions earlier than 6.5 only)
  • Role
  • SsoFederation
  • SsoIdentityProvider
  • SsoMetadata
  • Storage
  • StorageAuthToken
  • User
  • UserRole

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

External resources

 

  • Was this article helpful?