amitt001 / pygmy

An open-source, feature rich & extensible url-shortener + analytics written in Python :cookie:
https://demo.pygy.co/pygmy
MIT License
695 stars 134 forks source link

Production config files example #65

Open rgarrigue opened 1 year ago

rgarrigue commented 1 year ago

Hi there

I'm testing pygmy in a homemade Helm chart. A bit in trouble with Django behing unhappy with CSRF. Would you mind providing/documenting config files examples, both pygmy's and pygmyui's ?

Best regards,

isaacgrimaldo commented 4 months ago

I had the same error until I removed the CSRF middleware. I tried configuring CORS, but it still didn't work. So, for now, removing the middleware seems to be the quick solution.

alwyn-govchain commented 3 months ago

did you remember to set the allowed host and allowed origins for the django.middleware.csrf.CsrfViewMiddleware?