官术网_书友最值得收藏!

  • CORS Essentials
  • Rajesh Gunasundaram Randall Goya
  • 92字
  • 2021-07-09 19:53:42

Enabling CORS globally with server configuration

Depending on your web server, you may be able to add the Access-Control-Allow-Origin header to allow CORS globally on every page in the server configuration.

Enabling CORS globally is not recommended since it removes granular control per page or application.

Tip

Enabling CORS globally may be useful when you are only running a single application on the server, and every page needs to support CORS. By adding the header in the server configuration, you do not need to add the Access-Control-Allow-Origin header on a per-page basis.

主站蜘蛛池模板: 道真| 靖宇县| 乌拉特后旗| 北京市| 庄河市| 宁城县| 广河县| 中方县| 政和县| 太谷县| 黄陵县| 毕节市| 门头沟区| 墨江| 海林市| 牙克石市| 商南县| 长乐市| 田林县| 新绛县| 大丰市| 自贡市| 黄骅市| 徐汇区| 万源市| 娱乐| 石狮市| 宜春市| 满洲里市| 淳安县| 定远县| 亳州市| 洪湖市| 青神县| 堆龙德庆县| 正宁县| 南部县| 黑水县| 文成县| 尚义县| 东乡族自治县|