Questions about CORS policy

 avatar
Goranim avatarGoranim
{"ops":[{"insert":"Hi Archidekt team,\n\nI am currently trying to make a small application for personal use that takes a commander card as input and returns a list of the 200 or so most commonly used cards.\nIn order to do this I am trying to make use of the API which I have found through the forums.\n\nWhenever I try to make an API call using Axios I get an error explaining that the CORS policy setup on the server is blocking the request, so I was wondering what the current CORS policy is and if there is a way I can get through this policy?\n"}]}
0
 avatar
{"ops":[{"insert":"CORs is a mechanism to prevent websites (from browsers specifically) from hitting APIs directly unless that specific domain is allowlisted. \n\nArchidekt is setup such that we only allow requests directly from the browser from our domain to not our API directly.\n\nIf you want to program away around this, you'd need to setup your own proxy server and make the requests through that rather than hitting us directly. \n\nHope this helps. \n"}]}
0
Support us on Patreon to remove ads