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

Vimeo CORS policy blocking embed_image request. #34

Open
pyrextor opened this issue Nov 12, 2019 · 0 comments
Open

Vimeo CORS policy blocking embed_image request. #34

pyrextor opened this issue Nov 12, 2019 · 0 comments

Comments

@pyrextor
Copy link

pyrextor commented Nov 12, 2019

I get this error when trying to use embed_image to get any Vimeo thumbnail: Access to XMLHttpRequest at 'https://vimeo.com/api/v2/video/76979871.json' from origin 'http://localhost:4040' has been blocked by CORS policy: Request header field authorization is not allowed by Access-Control-Allow-Headers in preflight response.

With just this code:

this.embedService.embed_image(video, { image: 'thumbnail_medium' }).then(res => { console.log(res); });

'video' is a variable containing the video url.

This is just one of the videos I tried: https://vimeo.com/10549781

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

1 participant