• 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

Xdebug can't connect back to Docker host

PHP Deprecated issue when running artisan command

WAMP/Wordpress - cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received

How to use $this->session->set_userdata in codeigniter

OctoberCMS / Anonymous Global Scope

How to set time with DateTime modify?

SilverStripe unable to populate multiple member Childs

How to assert parameter attribute sub-structures in PHPUnit mock call expectations

Merge column values from two arrays to form an indexed array of associative arrays

Display specific shipping method if woocommerce product has specific acf field value

Json_Encode not returning html even i try to encode JSON_HEX_QUOT | JSON_HEX_TAG

I'm trying to write a clean url for my website using the $_SERVER['REQUEST_URI'] in php

Laravel Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) on a sub query with "ROW_NUMBER() OVER PARTITION"

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

"Unable to load dynamic library 'pdo_sqlsrv.so' "Cenos7 PHP7.2.10

About Contact Privacy policy Terms and conditions