残暴Sama

Results 1 comments of 残暴Sama

基座我使用Vue3,子应用是php的yii框架,然后对frontend的SiteController添加了跨域配置如下 'corsFilter' => [ 'class' => Cors::class, 'cors' => [ // 设置允许的来源,'*'表示接受所有来源 'Origin' => [ '*' ], ], ], 但是除了引入的index.php文件外,其他的css和js等资源都跨域了,有大佬知道怎么处理吗,我找了很多网上资料都没有解决,不会php,但是想要做调研,项目我是用 https://github.com/yiisoft/yii2-app-advanced 做测试的