第一步 安装 header模块
sudo apt update sudo apt install apache2 sudo a2enmod headers
第二步 apache2配置过滤
<FilesMatch "\.(jpg|png|css|js)$">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
</FilesMatch>
larvel 配置 csrf 跳过
VerifyCsrfToken
protected $except = [
"/img/*",
//
];
标签:错误,静态,sudo,apt,apache2,csrf
From: https://www.cnblogs.com/hui413027075/p/17577327.html