yii2跨域处理方法 nginx服务器配置
加个几行header配置:
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Headers X-Requested-With;
add_header Access-Control-Allow-Methods GET,POST,OPTIONS;
本文由 我爱PHP169 作者:admin 发表,其版权均为 我爱PHP169 所有,文章内容系作者个人观点,不代表 我爱PHP169 对观点赞同或支持。如需转载,请注明文章来源。
Warning: count(): Parameter must be an array or an object that implements Countable in /home/leikaixin0lzesipk4aui0xuirn/wwwroot/wp-content/themes/mnews/includes/post-like.php on line 207
赞0