First version
Bugfix with passing `options.data`

Since the `options` object is not stored in localStorage, it's `data` parameter would be gone if the request would fail and a retry was done after a browser refresh.