Fix cross site issues with tagging (and hopefully the rest of the code)