relative pathname in Request not working on POST request
Using the pathname in a GET request everything works fine.
Code:
But using a POST request I get the error:
If I use the absolute server url (like
Code:
But using a POST request I get the error:
TypeError: Failed to construct 'Request': Invalid URL "/api/brand".If I use the absolute server url (like
http://localhost:3000/api/brand) it just works fine.