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
blob: urls rejected #4677
Comments
Closed and merged |
@jasonsaayman Hi wenn will this fix be published on npm? because on my project we are facing the same issue. We could downgrade to 0.26 but I would rather wait some days and upgrade |
|
On version |
Any updates? This seems still to be an issue. |
@arpitha-jaanaki i think this is fixed in version 1.x and up, you should use that one and test if it still occurs |
HI thanks for the suggestion. |
hi above error got fixed but axios with version greater than 1.0.0 has some error too that it shows "Cannot use import statement outside a module " for import Axios from 'axios'; how to fix this new, solution tried : added type :"module" in package.json file |
@arpitha-jaanaki If you are inside a browser environment(react/vue,...), you need to add "type="module" to your script tag. |
Describe the bug
axios throws ERR_BAD_REQUEST (message: Unsupported protocol blob:) when processing a url with scheme blob:
To Reproduce
This code:
generates a blob url (eg, blob:http://localhost:3001/01296a6c-a41f-49b1-b59e-af71729dbb6b) which axios rejects as having an invalid scheme. But the browser supports such urls and it was working alright until #3544 which started restricting the schemes accepted.
Expected behavior
Accept the request.
Environment
Additional context/Screenshots
Add any other context about the problem here. If applicable, add screenshots to help explain.
The text was updated successfully, but these errors were encountered: