• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

How to override header set in Apache config with more specific header in a virtual host

phpapachehttp-headersapache2virtualhost


PHP Snippet 1:

Header set Content-Security-Policy "frame-ancestors 'none';"

PHP Snippet 2:

Header unset Content-Security-Policy
Header always append Content-Security-Policy "frame-ancestors 'self' https://*.mydomain.com;"

Related Snippets

codeigniter 4 running error first time with xampp

Laravel 5.1 how to use {{ old('') }} helper on blade file for radio inputs

PHP: Calling MySQL Stored Procedure with Both INPUT AND OUTPUT Parameters (NOT "INOUT")

Yii2 redirecting to previous page after login

getting error while enter Command => php artisan route:list

Multiply each value in array using array_map function

Can't remotely connect to MySQL error (13) with PHP script, connecting through CLI works

Laravel Multi-language routes without prefix

How can I get user id from session in javascript?

Custom post type single page not working

How update php.ini on a Mac OS X Mojave?

Group data in a multidimensional array based on two columns

Check if my GET request has Header: Token

GuzzleHttp Hangs When Using Localhost

How do I refresh a DIV content?

About Contact Privacy policy Terms and conditions