]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
pfizer - PFIZ-5424 CORS-Header setzen
authorThomas Dalichow <thomas.dalichow@publicispixelpark.de>
Wed, 25 Oct 2017 13:28:10 +0000 (15:28 +0200)
committerThomas Dalichow <thomas.dalichow@publicispixelpark.de>
Wed, 25 Oct 2017 13:28:10 +0000 (15:28 +0200)
customer/pfizer/web02-pfizer-de.pixelpark.net.yaml

index 87dd89bc24688c108f0dfe93b4feeeb7299bdab9..0dafd6429d5a8c2dbd6d26a1b449865a8625b68d 100644 (file)
@@ -91,7 +91,7 @@ infra::profile::typo3::projects:
     ssl_key: /etc/pki/tls/private/wildcard.pixelpark.net-key.pem
     #SetEnvIf User-Agent   ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
     headers:
-      - 'set Access-Control-Allow-Origin: *'
+      - 'set Access-Control-Allow-Origin %{literal('%')}{ORIGIN}e env=ORIGIN'
     directories:
       - location_root:
         provider: locationmatch
@@ -133,8 +133,8 @@ infra::profile::typo3::projects:
     user: apache
     mode: '2770'
     settypo3_context: false
-    setenv:
-      - 'TYPO3_CONTEXT Production/redaktion'
+    setenvif:
+      - 'Origin "^https:\/\/(https://www\.pfizermedicalinformation\.de|https:\/\/www\.pfizerpro\.de|https:\/\/pfizerprodedev8\.prod\.acquia-sites\.com|https:\/\/pfizerprodestg\.prod\.acquia-sites\.com)$" ORIGIN=$0'
     php_admin_value:
       memory_limit: 512M
       upload_max_filesize: 120M