Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8.0.3 路由跨域设置 不生效 #2993

Open
8-8-18 opened this issue Mar 28, 2024 · 1 comment
Open

8.0.3 路由跨域设置 不生效 #2993

8-8-18 opened this issue Mar 28, 2024 · 1 comment
Labels

Comments

@8-8-18
Copy link

8-8-18 commented Mar 28, 2024

所属功能组件

路由(Route)

ThinkPHP 版本

8.0.3

操作系统

windows

错误信息

No response

其它说明

Route::get('new/:id', 'News/read')
->ext('html')
->allowCrossDomain(); // 不生效
Route::group(function () {
.....
})->allowCrossDomain(); // 不生效
Route::group(function () {
.....
})->allowCrossDomain(
['Access-Control-Allow-Headers' => '*']
); // 不生效

@8-8-18 8-8-18 added the bug label Mar 28, 2024
@qeq66
Copy link

qeq66 commented Nov 28, 2024

请阅读最新手册。跨域已经调整为单独扩展了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants