I would do axios.post('/serverApi/getNews.php', ...
instead, or you may run into URL completion issues. But indeed, the easiest way is to just not specify the full URL and just let the browser auto-complete it.
5 Likes