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

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.

主站蜘蛛池模板: 盈江县| 三都| 阳曲县| 通渭县| 南陵县| 新宁县| 库尔勒市| 灌南县| 汶上县| 遂川县| 九寨沟县| 阿拉尔市| 新和县| 宁南县| 耒阳市| 全州县| 从化市| 邵武市| 奎屯市| 天柱县| 娄底市| 康平县| 刚察县| 临桂县| 嘉善县| 宁蒗| 博爱县| 灵丘县| 九龙县| 桦川县| 昆明市| 襄垣县| 遂平县| 浦城县| 同德县| 伊通| 三门峡市| 大方县| 天津市| 武穴市| 黔江区|