NIUCLOUD是一款SaaS管理后台框架多应用插件+云编译。上千名开发者、服务商正在积极拥抱开发者生态。欢迎开发者们免费入驻。一起助力发展! 广告
## thinkPHP跨域请求 跨域请求系统会默认带上一些Header,包括: ``` header("Access-Control-Allow-Origin: *"); header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept, Authorization"); header('Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS,PATCH'); ``` ![](https://img.kancloud.cn/38/9d/389df7552ed6d8f9efd064fd1c0fdc4c_1513x444.png)