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

Figure out how to sanitize the blob URL #4

Closed
asamuzaK opened this issue Feb 4, 2023 · 1 comment · Fixed by #5
Closed

Figure out how to sanitize the blob URL #4

asamuzaK opened this issue Feb 4, 2023 · 1 comment · Fixed by #5
Labels
enhancement New feature or request

Comments

@asamuzaK
Copy link
Owner

asamuzaK commented Feb 4, 2023

Unlike data URLs, blob URLs are only references to the objects and contain no clues about the actual objects.
Therefore, it is not possible to sanitize them from just the URL strings.

In the current implementation of URL Sanitizer, blob URLs are disabled by default, but when enabled, URLs are simply passed as a no-op.

There has been some discussion about the specification of blob URLs.
Refs.

Consider how to sanitize blob URLs according to these discussions.

@asamuzaK asamuzaK added the enhancement New feature or request label Feb 4, 2023
@asamuzaK
Copy link
Owner Author

asamuzaK commented Feb 5, 2023

Ref buffer.resolveObjectURL(id)
Looks like Node.js can get source and MIME type.

asamuzaK added a commit that referenced this issue Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant