apache:
a. 首先确保加载了mod_headers模块:LoadModule headers_module modules/mod_headers.so
b. 在配置文件中加上:Header set Access-Control-Allow-Origin *
nginx:
在配置文件中加上:add_header 'Access-Control-Allow-Origin' "$http_origin";
php:
在入口文件中加上:header('Access-Control-Allow-Origin: *');
随时随地看视频