respond json to all incase of ssl redirect