It would be fine if we could experiment GET API on a local environment... But there is CORS error ...
API & CORS for Localhost
Posts: 3 · Views: 176
23222 25557 I got the same problem, did you fix it? When I request the api with ajax, I have been blocked by CORS policy.
25570 Use backend for getting data(php, phyton, expressjs etc.) then request your backend server(ajax recommended) with parameters. Your backend send request but your frontend get data. so you don't get this error if you use this.
All images remain property of their original owners. Site & code © wallhaven.cc 2024. Privacy Policy · Terms of Service