From abdd3e848377e34b2a39bfce869ab5d89a3a4b83 Mon Sep 17 00:00:00 2001 From: namntgch18325 Date: Tue, 4 May 2021 11:08:58 +0700 Subject: [PATCH 1/4] [EMS][ENV] Update Sanctum domain --- .env.example | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env.example b/.env.example index be89ce8..d958e89 100644 --- a/.env.example +++ b/.env.example @@ -53,5 +53,5 @@ MIX_STORE_IMAGE_URL="storage" VUE_APP_BASE_API_URL= VUE_APP_I18N_LOCALE= VUE_APP_I18N_FALLBACK_LOCALE= -SANCTUM_STATEFUL_DOMAINS=localhost:8000,127.0.0.1:8000 +SANCTUM_STATEFUL_DOMAINS=training-ems.herokuapp.com,training-ems.herokuapp LARAVUE_USE_ESLINT=true \ No newline at end of file From bb6c92a6f1cd358fad86d7929f44337c9abdc123 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C5=A9=20=C4=90=E1=BB=A9c=20Vi=E1=BB=87t?= <42991887+vietvd13@users.noreply.github.com> Date: Tue, 4 May 2021 11:17:08 +0700 Subject: [PATCH 2/4] Update mix-manifest.json --- public/mix-manifest.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/mix-manifest.json b/public/mix-manifest.json index 53bea8d..322ca68 100644 --- a/public/mix-manifest.json +++ b/public/mix-manifest.json @@ -1,5 +1,5 @@ { - "/js/app.js": "/js/app.js?id=a99001c69c308f1fe4e1", - "/js/manifest.js": "/js/manifest.js?id=8954d062fb292d9b33fa", - "/js/vendor.js": "/js/vendor.js?id=9024f4861951ed926495" + "/js/app.js": "/js/app.js", + "/js/manifest.js": "/js/manifest.js", + "/js/vendor.js": "/js/vendor.js" } From cf9c238530f7ff86326e8e79d062f02dd8b4ebfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C5=A9=20=C4=90=E1=BB=A9c=20Vi=E1=BB=87t?= <42991887+vietvd13@users.noreply.github.com> Date: Tue, 4 May 2021 11:20:01 +0700 Subject: [PATCH 3/4] Update .htaccess --- public/.htaccess | 48 +++++++++++++++++++----------------------------- 1 file changed, 19 insertions(+), 29 deletions(-) diff --git a/public/.htaccess b/public/.htaccess index eaa17d5..a48f998 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -1,30 +1,20 @@ - - # Compress HTML, CSS, JavaScript, Text, XML and fonts - AddOutputFilterByType DEFLATE application/javascript - AddOutputFilterByType DEFLATE application/rss+xml - AddOutputFilterByType DEFLATE application/vnd.ms-fontobject - AddOutputFilterByType DEFLATE application/x-font - AddOutputFilterByType DEFLATE application/x-font-opentype - AddOutputFilterByType DEFLATE application/x-font-otf - AddOutputFilterByType DEFLATE application/x-font-truetype - AddOutputFilterByType DEFLATE application/x-font-ttf - AddOutputFilterByType DEFLATE application/x-javascript - AddOutputFilterByType DEFLATE application/xhtml+xml - AddOutputFilterByType DEFLATE application/xml - AddOutputFilterByType DEFLATE font/opentype - AddOutputFilterByType DEFLATE font/otf - AddOutputFilterByType DEFLATE font/ttf - AddOutputFilterByType DEFLATE image/svg+xml - AddOutputFilterByType DEFLATE image/x-icon - AddOutputFilterByType DEFLATE text/css - AddOutputFilterByType DEFLATE text/html - AddOutputFilterByType DEFLATE text/javascript - AddOutputFilterByType DEFLATE text/plain - AddOutputFilterByType DEFLATE text/xml + + + Options -MultiViews -Indexes + + RewriteEngine On - # Remove browser bugs (only needed for really old browsers) - BrowserMatch ^Mozilla/4 gzip-only-text/html - BrowserMatch ^Mozilla/4\.0[678] no-gzip - BrowserMatch \bMSIE !no-gzip !gzip-only-text/html - Header append Vary User-Agent - \ No newline at end of file + # Handle Authorization Header + RewriteCond %{HTTP:Authorization} . + RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] + + # Redirect Trailing Slashes If Not A Folder... + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_URI} (.+)/$ + RewriteRule ^ %1 [L,R=301] + + # Send Requests To Front Controller... + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_FILENAME} !-f + RewriteRule ^ index.php [L] + From 52f0d3f9859db33a0e326f90a92a933f60de655c Mon Sep 17 00:00:00 2001 From: vietvd13 Date: Tue, 4 May 2021 11:24:46 +0700 Subject: [PATCH 4/4] Revert "[EMS][ENV] Update Sanctum domain" This reverts commit abdd3e848377e34b2a39bfce869ab5d89a3a4b83. --- .env.example | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env.example b/.env.example index d958e89..be89ce8 100644 --- a/.env.example +++ b/.env.example @@ -53,5 +53,5 @@ MIX_STORE_IMAGE_URL="storage" VUE_APP_BASE_API_URL= VUE_APP_I18N_LOCALE= VUE_APP_I18N_FALLBACK_LOCALE= -SANCTUM_STATEFUL_DOMAINS=training-ems.herokuapp.com,training-ems.herokuapp +SANCTUM_STATEFUL_DOMAINS=localhost:8000,127.0.0.1:8000 LARAVUE_USE_ESLINT=true \ No newline at end of file