我正在使用Laravel的开发版本(4.1.*),有一个我不想要的新默认配置:X-Frame-Options: SAMEORIGIN
目前我禁用了by deleting one line in Illuminate\Http\FrameGuard.php
个
我在寻找更好的解决方案.我试过过滤.php文件:
App::after(function($request, $response) {
$response->header('X-Frame-Options', 'ALLOW-ALL');
});
但它只是添加了选项(X-Frame-Options:ALLOW-ALL, SAMEORIGIN
),而我需要一个覆盖.