Skip to content

Commit 628b844

Browse files
authored
CORS settings (#45129)
1 parent 39b88d1 commit 628b844

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

installation/src/Model/ConfigurationModel.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,12 @@ public function createConfiguration($options)
403403
// Locale settings.
404404
$registry->set('offset', 'UTC');
405405

406+
// CORS settings.
407+
$registry->set('cors', false);
408+
$registry->set('cors_allow_origin', '*');
409+
$registry->set('cors_allow_methods', '');
410+
$registry->set('cors_allow_headers', 'Content-Type,X-Joomla-Token');
411+
406412
// Mail settings.
407413
$registry->set('mailonline', true);
408414
$registry->set('mailer', 'mail');

0 commit comments

Comments
 (0)