1 month ago

Axios sends two requests

Posted 1 month ago by JeroenvanRensen

Hi everyone,

I've got this code:

axios.delete('/notes/' + + '/favorite');

But if I inspect my network tab, I see these two requests:

delete: http://notes.local/notes/4/favorite
delete: http://notes.local/notes/4

So, my note will be deleted too. What can I do about this?

Thank you! Jeroen

Note: by the favorite post request I do have the same problem, but then I get a 404 error, so it's not a problem.

Please sign in or create an account to participate in this conversation.