No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

OceanStor 9000 V300R006C00 Object Storage Service (Compatible with OpenStack Swift APIs) Administrator Guide 07

Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Cross-origin Resource Sharing

Cross-origin Resource Sharing

The object storage service supports cross-origin resource sharing (CORS).

For details about how to use CORS, see OceanStor 9000 Object Storage Service (Compatible with OpenStack Swift APIs) API Reference and OceanStor 9000 Object Storage Service (Compatible with OpenStack Swift APIs) Development Guide.

CORS is a browser standard mechanism provided by the World Wide Web Consortium (W3C). It defines the interaction methods between client-side web applications in one domain and resources in another domain. For standard web page requests, the scripts and contents at one website cannot interact with those at another website due to the existence of the same origin policy (SOP).

For system security, a browser usually only allows code access to resources of the same origin. For example, user A uses a browser to log in to www.abc.com and upload a resource, and then the resource can only be stored at www.abc.com. If you want to store the resource at another website like www.bcd.com, you need to use CORS.

Typical application scenarios are as follows:

  • With the support of the CORS, you can use JavaScript and HTML 5 to construct web applications. In this way, resources in the OceanStor 9000 can be accessed directly without the need to use proxy servers for transfer.
  • You can enable the dragging function of HTML 5 to directly upload files to the OceanStor 9000 (with the upload progress displayed) or update the contents using web applications.
  • You can host external web pages, style sheets, and HTML 5 applications in different domains. Therefore, web fonts or pictures on OceanStor 9000 can be shared by multiple websites.
Translation
Download
Updated: 2019-04-28

Document ID: EDOC1000122524

Views: 11138

Downloads: 86

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next