Report this

What is the reason for this report?

Django / App Platform / Trusted Source

Posted on January 21, 2022
Shubham Sonar

By Shubham Sonar

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!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there,

Have you tried adding the hostname in question to your Django ALLOWED_HOSTS list specified in the settings.py file?

Best, Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.