OBS supports CORS rules and allows resources on OBS to be accessed across origins.
OBS supports static website hosting (for details, see Static Website Hosting). Static websites stored on OBS can respond to website requests from another origin only when CORS is configured for the bucket.
OBS CORS is used in the following scenarios:
- Enables the dragging function of HTML5 to be used to upload files to OBS (with the upload progress displayed) or update OBS contents using web applications.
- Hosts external web pages, style sheets, and HTML5 applications in different origins. Web fonts or pictures on OBS can be shared by multiple websites.
The configuration of CORS takes effect within two minutes.