I'm using django for a website app, mostly. I need to write a canvas page to handle requests. In the simplest form, I have:
(r'^canvas/','commitments.views.canvas'),
in urls.py
, and:
@csrf_exempt
def canvas(request):
return HttpResponse("Hello world")
in views.py
. This all works fine if I load the page directly. If, however, I load the page through the Facebook canvas, I'm getting an error related to modsecurity ModSecurity: Output filter: Failed to read bucket (rc 104): Connection reset by peer [hostname "..."] [uri "/canvas/"]
.
Any thoughts on what I'm doing wrong here? Thanks for the help.