You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then store.sync() does not send AJAX requests to http://example.com/store/api/mydb, instead it syncs with another database in browser with the name '/store/api/mydb', which is rather confusing.
What we want is to check if the remote or remoteBaseUrl option starts with a /, and if it does, prefix it with location.origin
The text was updated successfully, but these errors were encountered:
When my app runs at http://example.com and I run this code
Then
store.sync()
does not send AJAX requests to http://example.com/store/api/mydb, instead it syncs with another database in browser with the name'/store/api/mydb'
, which is rather confusing.What we want is to check if the
remote
orremoteBaseUrl
option starts with a/
, and if it does, prefix it with location.originThe text was updated successfully, but these errors were encountered: