Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't initiate on localhost #13

Open
PradatiusD opened this issue Jul 9, 2015 · 2 comments
Open

Can't initiate on localhost #13

PradatiusD opened this issue Jul 9, 2015 · 2 comments

Comments

@PradatiusD
Copy link

Hi Openaura devs!

I am trying to move from the older CoffeeScript version to this one which will be updated. I am running into this issue while testing on localhost.

OA.initialize({
  info_key: "my_api_key"
});

OA.ArtistInfo.fetchByOaArtistId(71, console.log);

And here is the error:

XMLHttpRequest cannot load http://api.openaura.com/v1/info/artists/71?id_type=oa%3Aartist_id&limit=100&api_key=YOUR_API_KEY. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:5000' is therefore not allowed access. The response had HTTP status code 403.

First I am not allowed to consume the resource via CORS, and secondly my api key is not transferred correctly to the module. It could be that I am misusing it, and if so I would gladly appreciate any further direction.

Thanks!
Daniel

@PradatiusD PradatiusD changed the title Can't Initiate on Localhost Can't initiate on localhost Jul 9, 2015
@lucasgonze
Copy link
Member

Howdy PradatiusD,
Can you clarify what you mean by moving from the older version to this one?

@PradatiusD
Copy link
Author

Hi Lucas!

Just to let you know this is Daniel Prada from Spanish Broadcasting System. The reason I ask this is that I am trying to decide between forking the Openaura CoffeeScript Node SDK or using this client-side Javascript one. Currently the CoffeeScript one needs work because it is missing some functionality (pagination, filtering, docs, etc).

In our conversations it was mentioned that this Javascript repository would be the place to look for on how to properly use and work with the delta API.

I am just trying to figure out where to base our API code off of.

Thanks!

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

No branches or pull requests

2 participants