• 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

Php - Sum up the numbers in an array one by one

XML to CSV with PHP converter [problem with images grabing]

Symfony Make:Migration : The metadata storage is not up to date, please run the sync-metadata-storage command to fix this issue

selected value from the listbox in php

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

Script @php artisan package:discover handling the post-autoload-dump event returned with error code 255

Explode not working properly with dash

file_get_contents() without "Http" to access external URL [closed]

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

Laravel s3 upload file with metadata using pre-signed url

How to write PHP in XSLT

Accessors (Getter) & Mutators (Setter) On a Pivot Table in Laravel

What's the net::ERR_HTTP2_PROTOCOL_ERROR about?

Open a popup box after receiving result from ajax

Inserting Country Selection into MySQL PHP [duplicate]

About Contact Privacy policy Terms and conditions