Skip to content

Can't initiate on localhost #13

@PradatiusD

Description

@PradatiusD

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions