Changes made for XSS in order to POST and PUT correctly