Cross-Origin Resource Sharing (CORS)

Cross-origin resource sharing (CORS) defines a way for websites hosted on different domains to access resources hosted on the domain where your bucket is registered.

With CORS support, you can build rich client-side web applications with Tebi and selectively allow cross-origin access.

To allow all CORS requests from all domains, enable CORS for a bucket with an empty XML configuration.


Empty XML configuration is convenient for testing, but is not recommended for a production deployment.

CORS Configuration Example

 1<?xml version='1.0' encoding='UTF-8'?>
 2<CORSConfiguration xmlns="">
 3    <CORSRule>
 4        <AllowedOrigin></AllowedOrigin>
 5        <AllowedOrigin></AllowedOrigin>
 6        <AllowedMethod>HEAD</AllowedMethod>
 7        <AllowedMethod>GET</AllowedMethod>
 8        <AllowedMethod>POST</AllowedMethod>
 9        <AllowedHeader>*</AllowedHeader>
10    </CORSRule>

See Also

Refer here for more information.