I am developing a Backbone app which heavily relies on a REST API using ajax/fetch calls.
All my business logic is written in PHP classes using MySQL. For now i am utilizing FRAPI as the API which works very well for me.
In my development environment I have two virtual hosts:
- a static HTML/JS client app -> localhost
- FRAPI API in PHP -> api.local
The problem is that my clients requests are crossdomain (IE and such browser don´t work).
What can I do to keep my client vhost static (no PHP proxy) and not using JSONP? What RESTful API is typically used for Backbone?