Open ebebbington opened 4 years ago
Might have to implement the OPTIONS method. I wonder if axios does a preflight check before it does the actual POST.
I believe, this is something that we need to handle in Drash itself... If we add a simple middleware that accepts any origin, should work, right?
That's a good point. Didn't think about that. Could work.
@Guergeiro feel free to take this issue on 😆
When using
localhost:8080
, we get the below errors when sending aPOST
to/login
and/register
@Guergeiro Also mentioned we get CORs problems when using
127.0.0.1:*
Figure out a solution to this to fix the errors.
Errors (in console)