The code below gives the next error. I\'ve set the header. I found the problem lies in CORS but couldn\'t find how to make it work. In the commented I tried to send request with
You need to allow the whitelist header "http://localhost:3000" on you Google developer account.
or
Try changing the dataType: 'jsonp' in your ajax call.
dataType: 'jsonp'