• 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 Form Not Inserting

What is PHP's equivalent of JavaScript's "array.every()"?

PHPSpreadsheet - How Do I Use Auto Migration Tool

array_key_exists(): The first argument should be either a string or an integer

Declaration of OMDb::query(string $statement) must be compatible with PDO::query

PHP -> Next nearest date defined by array of days in week

Composer fails with kylekatarnls/update-helper on new homestead

PHP array stringify

how to display a view on laravel 8 and not have a 404 NOT FOUND page?

display WooCommerce “Add to cart” button with short-code [add_to_cart ] dynamically

How can I make this nested location configuration use the correct path to call a php program?

Convert every two values of an associative array into key-value pairs

How to get variable from JavaScript to PHP [duplicate]

Trying to iterate over a mongodb cursor twice - failing

PHPS source file - 403 Forbidden You don't have permission to access this resource

About Contact Privacy policy Terms and conditions