Avoid issues with CORS checks
authorAlexander Ebert <ebert@woltlab.com>
Sun, 8 Apr 2018 18:38:39 +0000 (20:38 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 8 Apr 2018 18:38:39 +0000 (20:38 +0200)
wcfsetup/install/files/lib/action/CoreRewriteTestAction.class.php

index 341ce741c0daf7ccac77bf4b5ea3065894d6309b..d8dc3a9a24436899cea3c3fefb91f3da45f9b82b 100644 (file)
@@ -33,6 +33,7 @@ class CoreRewriteTestAction extends AbstractAction {
        public function execute() {
                parent::execute();
                
+               header('Access-Control-Allow-Origin: *');
                header('Content-type: application/json');
                echo JSON::encode(['core_rewrite_test' => 'passed']);
                exit;