Question

Django / App Platform / Trusted Source

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!


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi there,

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

Best, Bobby