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

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.

主站蜘蛛池模板: 永吉县| 兰考县| 外汇| 凤城市| 泗水县| 宁陕县| 顺昌县| 广宁县| 米泉市| 大田县| 延安市| 木兰县| 都昌县| 正宁县| 大港区| 凌云县| 甘谷县| 阿鲁科尔沁旗| 瓮安县| 通道| 渝北区| 乌什县| 常州市| 株洲县| 永定县| 陆河县| 莆田市| 泉州市| 城步| 西吉县| 霍城县| 吕梁市| 新疆| 尚志市| 金门县| 汝阳县| 胶南市| 涞源县| 新田县| 平谷区| 禄丰县|