diff --git a/src/conf/tc-nginx.conf b/src/conf/tc-nginx.conf index ddc8301d..f644fa37 100644 --- a/src/conf/tc-nginx.conf +++ b/src/conf/tc-nginx.conf @@ -72,7 +72,7 @@ server { location ~ ^/fonts/ { add_header 'Access-Control-Allow-Origin' "$http_origin"; - add_header 'Access-Control-Allow-Headers' "Content-Type,Accept,Origin,User-Agent,DNT,Cache-Control,X-Mx-ReqToken,Keep-Alive,X-Requested-With,If-Modified-Since" always; + add_header 'Access-Control-Allow-Headers' "Content-Type,Accept,Origin,User-Agent,DNT,Cache-Control,X-Mx-ReqToken,Keep-Alive,X-Requested-With,If-Modified-Since"; root $root_base/dist; } diff --git a/src/footer.html b/src/footer.html index 1d7b0b49..421645ea 100644 --- a/src/footer.html +++ b/src/footer.html @@ -253,6 +253,7 @@

Comment Examples

document.cookie = 'tcsso=; path=/; domain=.' + tcconfig.domain + '; expires=' + new Date(0).toUTCString(); document.cookie = 'tcjwt=; path=/; domain=.' + tcconfig.domain + '; expires=' + new Date(0).toUTCString(); main.menuVisible = vm.isAuth = false; + window.location.href = '/logout'; } } }; diff --git a/wp/wp-content/themes/tcs-responsive/footer.php b/wp/wp-content/themes/tcs-responsive/footer.php index 953018c1..2d782909 100644 --- a/wp/wp-content/themes/tcs-responsive/footer.php +++ b/wp/wp-content/themes/tcs-responsive/footer.php @@ -334,6 +334,7 @@ function _kms(u){ document.cookie = 'tcsso=; path=/; domain=.' + tcconfig.domain + '; expires=' + new Date(0).toUTCString(); document.cookie = 'tcjwt=; path=/; domain=.' + tcconfig.domain + '; expires=' + new Date(0).toUTCString(); main.menuVisible = vm.isAuth = false; + window.location.href = '/logout'; } } };