Independent Professional
Hey Everyone,
I have deployed my Django application to app platform ( using GITHub). One of my app/url accepts POST request. When I am try to make the post request from external site ( for example: jsfiddle for now since I am developing ), its refused to connect. Which is expected since the site is not set as a trusted site anywhere.
Tried searching where to add the Trusted Site/Source such that the POST calls are allowed from same, didn’t found any related discussion/documentation as of yet. Please can anyone point me in a correct direction.
Thanks & appreciate everyone’s time to read this!
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,
Have you tried adding the hostname in question to your Django ALLOWED_HOSTS list specified in the settings.py file?
Best, 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.