By enabling the CORS module in Drupal, it's possible to for example develop your app on localhost, while the Drupal site is located remotely
- Download and enable CORS
- Go to
- Enter this:
*|http://localhost drupalgap|http://localhost drupalgap/*|<mirror>|GET,POST,PUT,DELETE|Content-Type,X-CSRF-Token|true
- Open your
.htaccesfile and add this to the end of the file:
Header set Access-Control-Allow-Headers "origin, content-type, accept, x-csrf-token"
At first glance, this doesn't work for User Login though.