From c0aea99dff0060a0c897f466b284389b9cf16242 Mon Sep 17 00:00:00 2001 From: Yandols Date: Mon, 5 Feb 2018 03:45:33 +0800 Subject: [PATCH] Fixed assets sometimes not loading due to non-absolute path in configuration. --- public/.htaccess | 6 ++++++ public/403.php | 16 ++++++++-------- public/404.php | 16 ++++++++-------- 3 files changed, 22 insertions(+), 16 deletions(-) diff --git a/public/.htaccess b/public/.htaccess index c0af3fa..2c554a0 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -23,3 +23,9 @@ RewriteRule .* http://www.urbandictionary.com/define.php?term=fuck+you [R=301,L] #Preventing Public Access to assets folder #RedirectMatch 403 ^/assets/?$ + +#Allow linking asset elemets across subdomains + + Header set Access-Control-Allow-Origin "*" + + diff --git a/public/403.php b/public/403.php index 6d3e141..fbf126d 100644 --- a/public/403.php +++ b/public/403.php @@ -25,8 +25,8 @@ - - + + @@ -54,12 +54,12 @@ - - - - - - + + + + + + \ No newline at end of file diff --git a/public/404.php b/public/404.php index f0f8286..9f3b3b9 100644 --- a/public/404.php +++ b/public/404.php @@ -25,8 +25,8 @@ - - + + @@ -54,12 +54,12 @@ - - - - - - + + + + + + \ No newline at end of file