question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CORS AngularJS and Restangular

See original GitHub issue

Hi there, I tried to upgrade to AJS1.2 today and ran into the issue that I was not able to call CORS resources. It worked without any problems before. Even adding:

RestangularProvider.setDefaultHeaders({
    "Content-Type": "application/json",
    "X-Requested-With": "XMLHttpRequest"
  });

Did not solve the issue. Are there any other things I need to take care of?

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:23 (12 by maintainers)

github_iconTop GitHub Comments

0reactions
mgontocommented, Mar 2, 2014

Ohhhh, Now I get what you mean!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Restangular CORS error is failing with status code of -1
The restangular docs states that the API with CORS error fails with a status ... With the AngularJS framework's $http service, CORS errors ......
Read more >
Angularjs – Restangular prevent 'preflight' OPTIONS call – iTecNote
OPTIONS requests are what we call pre-flight requests in Cross-origin resource sharing (CORS). They are necessary when you're making requests across different ...
Read more >
Using AngularJS to Build Dynamic Web Pages with ...
AngularJS (Angular) is a structural framework for dynamic Web apps. ... AngularJS requires servers to have CORS (Cross-origin resource sharing) enabled.
Read more >
Consuming a RESTful Web Service with AngularJS - Spring
The AngularJS client will render the ID and content into the DOM. The service at rest-service.guides.spring.io is running the code from the CORS...
Read more >
umbraco rest api and umbracoapicontroller cors conflicting
Hi everyone,. I managed to install the new Umbraco Rest API and I was starting creating an Angularjs App with Restangular.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found