## 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)