|
@@ -72,9 +72,9 @@ |
|
|
block discarded – undo |
|
72
|
72
|
|
|
73
|
73
|
if ($this->params->has('pwc.static.domain')) { |
|
74
|
74
|
$possibleOrigins = $this->params->has('pwc.conversation.possible_origins') ? |
|
75
|
|
- explode(' ', $this->params->get('pwc.conversation.possible_origins')) : []; |
|
76
|
|
- $possibleOrigins[] = 'https://'.$request->getHost(); |
|
77
|
|
- $possibleOrigins[] = 'https://'.$this->params->get('pwc.static.domain'); |
|
|
75
|
+ explode(' ', $this->params->get('pwc.conversation.possible_origins')) : [ ]; |
|
|
76
|
+ $possibleOrigins[ ] = 'https://'.$request->getHost(); |
|
|
77
|
+ $possibleOrigins[ ] = 'https://'.$this->params->get('pwc.static.domain'); |
|
78
|
78
|
|
|
79
|
79
|
if (in_array($request->headers->get('origin'), $possibleOrigins)) { |
|
80
|
80
|
$origin = $request->headers->get('origin'); |
Please login to merge, or discard this patch.