Movie Review tutorial - API cross

I’m following the Movie Review tutorial and cannot make a successful call to the API with the error being:

Error: TypeError: Request header field api_key is not allowed by Access-Control-Allow-Headers.

Any ideas on how to overcome this? I am using Safari for my browser.

The api_key must be given as a query parameter, not header, so that’s your error!

1 Like

Ah darn it, what an idiot! For some reason I have a real mental block when it comes to APIs. Probably didn’t help that I wasn’t viewing the video at full screen either.

Thank you.