Assuming the id as the url won't work if I'm using a different domain for my API.
jorgeecardona opened this issue · 2 comments
jorgeecardona commented
Hi,
I don't use the same domain for the API and the web and Model.url will assume the url as the model id, and I can't set the url to use the api domain without extending this. Maybe you can add some kind of urlHost to set the correct domain.
Thanks.
PaulUithol commented
Yeah, something like urlHost
parameter on Backbone.Model
could work. Another option could be to include the host in your resource_uri
s?
Aren't you going to have issues with the same-origin policies though?
PaulUithol commented
Closing due to inactivity