skip to Main Content

Nginx " X-Frame-Options" set to two values

I added this to my config: add_header X-Frame-Options "ALLOW-FROM http://167.235.117.189" always;. But Chrome says that there are two "X-Frame-Options" set. I searched with grep in my entire /etc/nginx directory but it only found the one I set. Can anybody help…

VIEW QUESTION

Centos – How to install nginx. Is nginx repos down?

I'm following the instructions on how to install nginx here: https://www.nginx.com/resources/wiki/start/topics/tutorials/install/ But no matter what I do I always get: http://nginx.org/packages/mainline/centos/7/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found My nginx.repo file is like so: cat /etc/yum.repos.d/nginx.repo [nginx] name=nginx repo…

VIEW QUESTION

How to force Cache Headers in Laravel

I have a file which I call through the route like this: Route::group([ 'middleware' => ['cache.headers:public;max_age=600'], ], function () { Route::get('/my-file', function ($locale) { //some logic $contents = 'my file content'; $response = Response::make($contents, 200); $response->header('Cache-Control', 'public, max-age=600'); $response->header('Expires', now()->addSeconds(600)->toRfc7231String());…

VIEW QUESTION
Back To Top
Search