From: Thomas Dalichow <thomas.dalichow@publicispixelpark.de>
Date: Wed, 25 Oct 2017 13:28:10 +0000 (+0200)
Subject: pfizer - PFIZ-5424 CORS-Header setzen
X-Git-Tag: v0.1.0~2173^2~7
X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=de09c1c222059fb95ae1a6a6a627b368d59a1361;p=pixelpark%2Fhiera.git

pfizer - PFIZ-5424 CORS-Header setzen
---

diff --git a/customer/pfizer/web02-pfizer-de.pixelpark.net.yaml b/customer/pfizer/web02-pfizer-de.pixelpark.net.yaml
index 87dd89bc..0dafd642 100644
--- a/customer/pfizer/web02-pfizer-de.pixelpark.net.yaml
+++ b/customer/pfizer/web02-pfizer-de.pixelpark.net.yaml
@@ -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