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

feat: add url validation to oembed api #290

Merged
merged 1 commit into from
Oct 31, 2020
Merged

Conversation

smeijer
Copy link
Member

@smeijer smeijer commented Oct 31, 2020

We now validate the oembed url, and we correct it if the consumer provides a wrong playground url.

To get the oembed url, the consumer should retrieve it from the HTML. But it turns out not every consumer does this. Some figure out where we host the oembed api, and call that directly. Resulting in incorrect embed urls.

We can't do everything to support those consumers, but we now do replace the /gist/ path with a /embed/ to be a bit less strict.

@smeijer smeijer added the feature New feature or request label Oct 31, 2020
@smeijer smeijer self-assigned this Oct 31, 2020
@smeijer smeijer merged commit 082fd30 into develop Oct 31, 2020
@smeijer smeijer deleted the feature/improve-oembed branch October 31, 2020 12:05
@smeijer smeijer changed the title feat: add url validation to oembed feat: add url validation to oembed api Oct 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant