Open SamerElaila opened 6 years ago
https://github.com/facg3/chemics/blob/cc6da16a2f605969bfaababa5abc402954321073/src/router.js#L35
you are returning html if there was an error, and json if it success.
and also the content-type of your response in case it success is text/html where the response is actually json , so you should change the content-type to application/json
content-type
text/html
application/json
see this link for more info
noted ty
https://github.com/facg3/chemics/blob/cc6da16a2f605969bfaababa5abc402954321073/src/router.js#L35
you are returning html if there was an error, and json if it success.
and also the
content-type
of your response in case it success istext/html
where the response is actually json , so you should change thecontent-type
toapplication/json
see this link for more info