Subscribe rss
Blog categories
All | Backendless features
Feature 63: Cross-domain access control for browser-based apps
March 12, 2015 by markpiller

Backendless is not just a mobile backend – it also provides hosting and runtime support for browser-based applications. Indeed, we offer a fully-featured SDK for JavaScript apps. Unless you host your Backendless-powered app in our Hosting system, you will be running into cross-origin domain requests. This occurs when an application is loaded into a browser from one host, but then it makes a request (XHR, socket, etc) to another host. In the case of Backendless, the second host would be the backend platform we provide.

To simplify the cross-origin setup, Backendless console includes a special section where application developer can list all the host names where the app may be loaded from. You can access that section on the Manage > App Settings screen and then scroll down to the Domain Control section:
domain-control The text field in the interface accepts the names of the hosts (domains) where your JS app is loaded by a browser from. Enter the domain names or IP addresses (one per line) or use the * for all domains. Click Save to save the changes.

Share this post
Tweet about this on TwitterShare on FacebookGoogle+