Getting list of beers: Cross-Origin Request Blocked

76 views
Skip to first unread message

Chay Eswar

unread,
Dec 12, 2017, 12:05:15 AM12/12/17
to Brewery DB API
Hi, 

I am trying to access Brewery DB API using Angular js http service. I have used method, url and headers as parameters. Although, I see data coming from the url, it's not working in my application. I am getting below error message in both firefox and in chrome:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://api.brewerydb.com/v2/beers?&key=MYKEY&name=oberon. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).

I guess I should set this property true in browser but I am not sure. Can anyone help me?

Thanks!

Chay

Garrison Locke

unread,
Dec 12, 2017, 7:23:30 AM12/12/17
to brewer...@googlegroups.com
Hey Chay,

We don’t support cross-origin requests for security reasons. You’ll need to send your api requests through a server-side technology like node or php or something.

Cheers!

Garrison  
--
You received this message because you are subscribed to the Google Groups "Brewery DB API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brewerydb-ap...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages