PaulUithol / backbone-tastypie

A small compatibility layer to make backbone.js and django-tastypie work together happily.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Assuming the id as the url won't work if I'm using a different domain for my API.

jorgeecardona opened this issue · comments

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.

Yeah, something like urlHost parameter on Backbone.Model could work. Another option could be to include the host in your resource_uris?

Aren't you going to have issues with the same-origin policies though?

Closing due to inactivity