Skip to main content

 

 
8x8 Support

Cloud Storage Service Public API, Cross-Origin Resource Sharing (CORS)

Question

Does Cloud Storage Service Public API support Cross-Origin Resource Sharing (CORS)?

Applies To

  • Cloud Storage Service Public API

Answer

  • Cross-Origin Resource Sharing (CORS) is not supported.
  • UI's should use proxies for downloading content and not call Cloud Storage directly.

Additional Information

If you attempted to call the Cloud Storage Service Public API from a frontend application you will see an error similar to the following in your Browsers console logs.

Access to fetch at 'https://api.8x8.com' from origin 'https://example.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.