Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

JSONP and CORS Issues #85

Open
johnalexhall85 opened this issue Jul 6, 2014 · 2 comments
Open

JSONP and CORS Issues #85

johnalexhall85 opened this issue Jul 6, 2014 · 2 comments

Comments

@johnalexhall85
Copy link

Hi Guys,

I'm having two issues with the Capitol Words API using AngularJS. The first is that when I add a callback, ex. callback=JSON_CALLBACK, I get and error that it is undefined. Normally, I would assume it was an error on my part and move on, but it works perfectly with the Congress API.

So after a while I tried to enable CORS and use $http.get to retrieve the data, but I get an access is denied. Am I doing something wrong? I can get more information if you need it.

Thanks,

John

@AlJohri
Copy link
Contributor

AlJohri commented Jul 7, 2014

Just curious: what's your use case for using JSONP?

Can you post a jsfiddle with your issue?

@LindsayYoung
Copy link

Hello @johnalexhall85,
Here is a CapitolWords JSONP example you might find helpful http://jsfiddle.net/rover/2YW5B/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants