Change to https

Switch to using https instead of http for read and write.