Request to api from axios (cross domain) (CORS) error
Hello. I'm try to fetch data from bank api with AXIOS and heve an error. I suffer 3 days with this error. I already read alot about CORS but didn't find an answer. I even tryed xmlHTTTPRequest with pure javascript and it worked, but AXIOS didn't! Please help.
or, it may be some other config params so just do a search. You can just use the request method which takes in the config to make the request and that should work as long as Apache or Nginx aren't blocking it or the api server is not configured for cors.
@RamjithAp, @ejdelmonico your method worked only in case i have access to the server side and write it on the server. But i have not. It's bank api site i try to connect and i didn't have access to the bank server, i try use bank api to do my application.