We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
路由(Route)
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' => '*'] ); // 不生效
The text was updated successfully, but these errors were encountered:
请阅读最新手册。跨域已经调整为单独扩展了
Sorry, something went wrong.
No branches or pull requests
所属功能组件
路由(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' => '*']
); // 不生效
The text was updated successfully, but these errors were encountered: