嗷呜happy
- 嗷呜happy 2019-09-18 已签到连续签到1天,获得了5个金钱
- 嗷呜happy 2018-12-25 已签到连续签到1天,获得了5个金钱
- 嗷呜happy 赞了说说祝新浪 20 周年生日快乐!
- 嗷呜happy 2018-11-30 已签到连续签到1天,获得了5个金钱
- 嗷呜happy 2018-11-23 已签到连续签到2天,获得了10个金钱
在动作中加上:
Yii::$app->response->headers->add('Access-Control-Allow-Origin', '*');
如果是 dev 环境,请修改
if (YII_ENV_DEV) { // configuration adjustments for 'dev' environment $config['bootstrap'][] = 'debug'; $config['modules']['debug'] = [ 'class' => 'yii\debug\Module', // uncomment the following to add your IP if you are not connecting from localhost. 'allowedIPs' => ['*'], // 这里改为 *,表示允许任何 IP 请求 ]; }
一样还是不行的
在动作中加上:
Yii::$app->response->headers->add('Access-Control-Allow-Origin', '*');
如果是 dev 环境,请修改
if (YII_ENV_DEV) { // configuration adjustments for 'dev' environment $config['bootstrap'][] = 'debug'; $config['modules']['debug'] = [ 'class' => 'yii\debug\Module', // uncomment the following to add your IP if you are not connecting from localhost. 'allowedIPs' => ['*'], // 这里改为 *,表示允许任何 IP 请求 ]; }
感谢,但是还是不行,返回空,
var_dump(xx)就有东西,只要return 就为空 没有任何结果返回- 嗷呜happy 2018-11-22 已签到连续签到1天,获得了5个金钱