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

CORS Issues from downloading Audio from url generated by API #31

Open
atlmtw opened this issue Nov 23, 2022 · 3 comments
Open

CORS Issues from downloading Audio from url generated by API #31

atlmtw opened this issue Nov 23, 2022 · 3 comments

Comments

@atlmtw
Copy link

atlmtw commented Nov 23, 2022

Hello!

So we are using the Buzzsprout API like so:

axios.get('https://www.buzzsprout.com/api/1888595/episodes/${id}.json',{ headers with auth })

Everything works and we get a response with data. However some users have been experiencing CORS issues with the audio url that gets returned. I have not been able to replicate on my end but they sent screenshots of their error messages:

Screen Shot 2022-11-08 at 2 45 50 PM

Screen Shot 2022-11-08 at 2 38 45 PM

Would anyone know what the issue may be?

Thanks,
Mason

@johnloringpollard
Copy link
Collaborator

Does this help fix the issue for you? #3

@atlmtw
Copy link
Author

atlmtw commented Nov 30, 2022

Hey John!

So I looked at the issue you sent me. It appears people are having CORS issues when it comes to the actual response from the API. However that's working fine for us. The issue we're having is more so when the browser is downloading the actual audio url that comes back from the response.

@johnloringpollard
Copy link
Collaborator

Just curious would something like this work? When a user clicks download, open a new tab and add a param to the URL. This is something we already have and makes me feel better than opening up the CORS.

For example: EPISODE_URL.mp3?download=true

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