Getting 403 forbidden error in flask application
I am running a flask application in AWS fargate. In the app, I call a POST api which internally needs to call a public endpoint to collect some data using requests.get() method. @app.route("/findByPin", methods=["POST"] def find_by_pin(): pincode = request.form['pincode'] headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36'} url = [SOME_URL]?pincode=pincode requests.get(url, headers=headers) The error that I am facing is that the API call to the public endpoint is returning 403 status code in respon
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.