百度智能云

All Product Document

          CDN

          Set Cross-domain Access

          Overview

          Cross-domain access means that the domain in which the resource initiating the request is located is different from the domain in which the resource pointed to by the request is located. For security reasons, browsers will restrict this non-homologous access. By enabling such feature, the users can clear the cache and access the configuration cross domains, and after the object of origin server (BOS) is updated, all caches corresponding to CDN can be updated automatically and synchronously.

          Set Cross-region Access

          1.Log into the CDN Management Console and enter the “Content Delivery Network (CDN)" page.

          2.Click Domain Name Management on the left navigation bar.

          3.Enter the domain name management page, and click the Management of the target domain name operation column.

          4.Enter the “CDN Domain Name Details " page, and select the Access Control tab in the navigation bar at the top of the page.

          5.Enter the access control page, click Edit in the setting module of Cross-domain Access Configuration.

          6.Enter the page of "Cross-domain Access Configuration", and select ON/OFF CORS rule.

          7.After you enable the CORS rules, you can set multiple Origins, one each line, with at most one * symbol per line.

          Note

          • Connect to CORS standard supported by BOS to realize cross-domain access, and the count of Origins must not exceed 100, and the characters of header must not exceed 50.
          • For specific CORS rules, please see:W3C CORS Standard.

          8.Click Save, and complete configuring the cross-domain access.

          Previous
          Advanced Authorization
          Next
          Set the IP Access Frequency Limit