FAQ Database Discussion Community

Angular $http useCredentials return error

I am trying to build an AngularJS frontend for a Drupal 7 website. The problem is that, when I set useCredentails to true, I get this error. Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://example.com. This can be fixed by moving the resource to...

Not able to hit 2nd services with generated Token

I have been provided with two services in which ist service is used for login purpose and it will return an xml node token which i to be added as the header in all other services call, In the attached sample code there are two functions in function CreateObject() i...