CORS Configuration

Last updated:2021-04-28 11:04:01

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:
微信截图_20200601142105.png

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.

Did you find the above information helpful?

Unhelpful
Mostly Unhelpful
A little helpful
Helpful
Very helpful

What might be the problems?

  • Insufficient
  • Outdated
  • Unclear or awkward
  • Redundant or clumsy
  • Lack of context for the complex system or functionality

More suggestions

0/200

Please give us your feedback.

Submitted

Thank you for your feedback.

问题反馈