to fix security errors when using PUT method through browsers