• 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

Inserting Country Selection into MySQL PHP [duplicate]

Laravel 5.2: Unable to locate factory with name [default]

Image upload not working through ajax Laravel

How to install PHP composer inside a docker container

Reorder attribute dropdown terms in Woocommerce single variable products

How can i update or reset my password without entering email field in laravel-8?

how to loop through json response data using ajax jquery?

How to fix Call to undefined method AppModelsTableName::factory?

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given [duplicate]

Docker image build with PHP zip extension shows "bundled libzip is deprecated" warning

Add Class in html Dynamically in PHP

The "client_reference_id" argument is not passed

Upload a file Using PHP and JavaScript

How to use PHPCBF to fix one issue at a time?

PHP mail function is sending blank message body

About Contact Privacy policy Terms and conditions