• 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

How to get AJAX to post on second page?

Multiple order by in WooCommerce

Insert multidimensional array to codeigniter cart

Assets not referencing to public folder (Laravel)

printing all running session variable in laravel 5.1

How can I get new CSRF token in LARAVEL by using ajax

Telegram bot doesn't answer

Add custom text under order details on WooCommerce My account view order pages

Encrypt in php and decrypt in Dart(flutter)

how to fix Service provider class not found when using repository?

Inserting data into SQL Server Db An Invalid direction was specified

Select option from dropdown menu with PHP and mySql

How to get company posts from LinkedIn via API?

PHP Array split string and Integers

Converting array to string and then back in PHP

About Contact Privacy policy Terms and conditions