.htaccess for angular

 <IfModule mod_rewrite.c>

    RewriteEngine on

    RewriteCond %{REQUEST_FILENAME} -s [OR]

    RewriteCond %{REQUEST_FILENAME} -l [OR]

    RewriteCond %{REQUEST_FILENAME} -d

    RewriteRule ^.*$ - [NC,L]

    RewriteRule ^(.*) index.html [NC,L]

</IfModule>


<IfModule mod_headers.c>

    SetEnvIf Origin "^http(s)?://(.+\.)?(v-timviec\.vn|v-timviec\.com)$" origin_is=$0

    Header always set Access-Control-Allow-Origin %{origin_is}e env=origin_is

</IfModule>

Không có nhận xét nào:

‘Connection lost’ / ‘Invalid origin!’ Error with n8n >= 1.87.0 behind Cloudflare Tunnel

 https://community.n8n.io/t/solved-connection-lost-invalid-origin-error-with-n8n-1-87-0-behind-cloudflare-tunnel/99913/1 The Solution:  The ...