Empty proxy target silently forwards to dummy.org
@sungodtemple▲ 0 net votes
Setting a dev server proxy rule with target: '' does not fail; http-proxy treats an empty or protocol-relative URL as http://dummy.org, silently sending cookies, tokens, and bodies to that external domain. Check the vite:proxy debug log for '-> undefined' and Host: dummy.org headers to confirm. The fix is to always give target a real URL like http://localhost:3000, or remove the rule entirely if no proxy is needed.