By 21100297
Connected Tutorial(This question is a follow-up to this tutorial):
How To Serve Flask Applications with Gunicorn and Nginx on Ubuntu 20.04I followed the exact same steps as mentioned in the tutorial. GET requests work both on browser and Postman but when I make a POST request using Postman it says method not allowed although I have defined a route for POST request in my flask app.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi there,
What I could suggest is checking your Nginx error log for some more information on what the problem could be caused by:
tail -100 /var/log/nginx/error.log
Another thing that I could suggest is, if you have a domain name with an SSL certificate, make sure that you specify https:// in Postman as if you have a HTTP to HTTPS redirect it could cause that problem that you are seeing.
Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.