[Vuejs]-Ajax Request being blocked by Cors when I abort or exit in the middle of the controller function

0👍

Just to share what I found:

I think the middleware I created couldn’t attach the headers because Laravel’s dd() function terminates the entire request in the middle.
So I guess I will just have to make a habit to include the variable in the json response every time when there is a variable that I wanna dump out.

Please let me know if there is anyone with the better solution!

Leave a comment