CORS Configuration

最近更新时间:2020-06-02 15:25:02

CORS configuration

Cross-Origin Resource Sharing (CORS) is a standard cross-origin solution provided by HTML5. CORS allows applications on the WEB side to access resources that do not belong to the origin. Developers can use the interfaces provided by KS3 to control the permissions for cross-origin access and develop flexible Web applications.

Configuration

You can configure the parameters of CORS, as shown below: CORS Configuration

Instructions for parameter setting:
  • Allow Origin

    Set the origin that allow cross-origin requests. Multiple domain names are separated by English commas.

  • Method

    Set the allowed cross-origin request methods, including: GET, POST, DELETE, PUT and HEAD

  • Allow Header

    Set the allowed cross-origin request Headers. Multiple Headers are separated by English commas.

  • Exposed Header

    Set the response Header that allows access from applications.

  • Cache Time

    Set the cache time of the browser for returned results from OPTIONS requests for specific resources.

    Note: KS3 will match the CORS rules in the corresponding Bucket according to the cross-origin request, and check against the permissions set by the rules. Rules are matched one by one; and based on rules, to allow the requests and return the corresponding headers.

金山云,开启您的云计算之旅

免费注册