Make a POST request with Javascript
Budget: €8 – €30 EUR
I want to do a POST request with Javascript and with axios to this url: https://cloudmonoxide.audidata.es/jnc/api/auth.php
and with this body: "key": "37qklewn".
After, I want to do a GET request, with the response of the first request as bearer token.
I have already tried to do that but I get the CORS error: has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.
I need to fix my code. I attach my code file here.
I need that to be done in 1h maximum. If anyone could help me I would be very grateful.
and with this body: "key": "37qklewn".
After, I want to do a GET request, with the response of the first request as bearer token.
I have already tried to do that but I get the CORS error: has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.
I need to fix my code. I attach my code file here.
I need that to be done in 1h maximum. If anyone could help me I would be very grateful.