Backbone.js and cross domain API
· 4 min read
I am playing a little bit with PHP micro framework Slim and javascript Backbone.js. Therefor I created two separate projects with URLs : mywebapp.dev
for front-end ( Backbone.js ) and api.mywebapp.dev
for back-end ( Slim ). The problem occurred nearly immediately : Cross-Origin Resource Sharing ( CORS ).