diff options
author | diosmosis <benaka@piwik.pro> | 2015-10-18 05:06:43 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-10-27 07:47:03 +0300 |
commit | 8472c54fa7dfeff8c2558f4a91b1f6d1ddcc977d (patch) | |
tree | 915ade5cdb0ed879edf96cafa30dca6a0aaf5808 /config/environment | |
parent | de483434a50e1a262056d63426ad17d1b9159414 (diff) |
Try to fix CORS issues in travis when port 3000 is used for Piwik.
Diffstat (limited to 'config/environment')
-rw-r--r-- | config/environment/ui-test.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/config/environment/ui-test.php b/config/environment/ui-test.php index 17a0656282..0c64153013 100644 --- a/config/environment/ui-test.php +++ b/config/environment/ui-test.php @@ -2,6 +2,11 @@ return array( + 'Piwik\Config' => \DI\decorate(function (\Piwik\Config $config) { + $config->General['cors_domains'][] = '*'; + return $config; + }), + 'observers.global' => array( array('Request.dispatch.end', function (&$result) { |