Groups
Groups
Sign in
Groups
Groups
Django users
Conversations
About
Send feedback
Help
Appending trailing slashes to jQuery Ajax requests automatically
32 views
Skip to first unread message
Ustun Ozgur
unread,
Oct 14, 2014, 2:33:45 PM
10/14/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
I have published a small snippet at
https://github.com/ustun/ensure-trailing-slash-for-jquery-ajax/blob/master/ensure_slash.js
that automatically adds a trailing slash to every outgoing AJAX request so as to minimize accidental redirects.
Best,
Ustun
(Inspired by
https://docs.djangoproject.com/en/dev/ref/contrib/csrf/#ajax
)
Reply all
Reply to author
Forward
0 new messages