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

Google storage url given as audio src produces a CORS issue #547

Open
Sibgha228 opened this issue Jan 29, 2020 · 2 comments
Open

Google storage url given as audio src produces a CORS issue #547

Sibgha228 opened this issue Jan 29, 2020 · 2 comments

Comments

@Sibgha228
Copy link

While using ogv player to play ogg file, if I give a hard code URL of an audio file served by my server it works fine but if I add the google storage url of the same file. It runs into the following CORS issue:

Access to XMLHttpRequest at 'https://storage.cloud.google.com/..' from origin 'http://localhost:3006' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.

Note that, I am using the same url for other audio players (waversurfer) and it works well. But when passed to ogv player, i see the above error. Do I have to add some other configuration to make it work ?

@Sibgha228
Copy link
Author

Here is the detail of headers of preflight request:

image

@bvibber
Copy link
Owner

bvibber commented Jan 29, 2020

I'm not sure whether redirects are allowed on CORS requests that require a preflight. Using the direct URL instead of a redirect should work, though, if the headers are correct.

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

2 participants