API & CORS for Localhost

Posts: 3 · Views: 176
  • 23222

    It would be fine if we could experiment GET API on a local environment... But there is CORS error ...

  • 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.

Message