摘要: thinkphp 框架自带的跨域请求 allowCrossDomain 跨域请求 如果某个路由或者分组需要支持跨域请求,可以使用 Route::get('new/:id', 'News/read') ->ext('html') ->allowCrossDomain(); 跨域请求一般会发送一条OPT 阅读全文
posted @ 2025-04-28 19:57 刘俊涛的博客 阅读(111) 评论(0) 推荐(0)