Skip to content

Instantly share code, notes, and snippets.

@smsohan
Created September 23, 2011 17:43
Hardcoding URL in JS is risky
$.ajax({
url: '/blog/posts/' + tag_name.
type: 'DELETE',
...
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment