diff --git a/core/request.php b/core/request.php index bc28d28..018c3ab 100644 --- a/core/request.php +++ b/core/request.php @@ -65,6 +65,8 @@ public static function dispatch($url = null, $routes = null, $return = false) // Route the template $request = Template::route($request); + header('Access-Control-Allow-Origin: *'); + if (!is_dir($request['template_path'])) { return Request::dispatch_notfound_template($request); }