Stack Overflow Asked by Mirzet Zukic on December 17, 2020
I have node js (express server) as backend for my Angular app and I add rewrite rules to .htaccess
, but API call to my express server isn’t correct because rewrite rules. When I deleted my rewrite rules then express server works properly.
My rewrite rules
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
RewriteRule ^ - [L]
RewriteRule ^ /index.html
It means if I have rewrite rule I got parse error, like this
ERROR Error: Uncaught (in promise): e: {"headers":{"normalizedNames":
{},"lazyUpdate":null},"status":200,"statusText":"OK","url"
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP