mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-24 10:23:17 +00:00
Check install before adding CORS as currently throw Exception
This commit is contained in:
@@ -350,7 +350,9 @@ class Application extends SilexApplication
|
|||||||
return new DefaultProvider($paths, []);
|
return new DefaultProvider($paths, []);
|
||||||
};
|
};
|
||||||
|
|
||||||
$this['alchemy_cors.options_providers'][] = 'phraseanet.api_cors.options_provider';
|
if ($this['phraseanet.configuration-tester']->isInstalled()) {
|
||||||
|
$this['alchemy_cors.options_providers'][] = 'phraseanet.api_cors.options_provider';
|
||||||
|
}
|
||||||
// allow access to oauth service from standard application scope
|
// allow access to oauth service from standard application scope
|
||||||
$this->register(new V1());
|
$this->register(new V1());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user