Closed goldenapples closed 8 years ago
I'm not sure exactly how this should be structured, as its conceivable that a site might want to do more with the mapped domain than just this plugin. Maybe we should add a filter that can be hooked into before dying. But at least this is a safety check where none existed before. Thoughts?
I think we should be able to compare the HTTP_HOST with the PROTECTED_EMBEDS_DOMAIN, and die in that case, therefore we'll just be blacklisting the embeds domain rather than anything not the main domain.
I think you did exactly that! Seems to be using spaces instead of tabs for some reason though :)
Seems to be using spaces instead of tabs for some reason though :)
Ah, yup. Darn editorconfig... Fixed now in 3d0f2e3
Adds a couple sanity checks for security:
This needs to be merged after #4, as it doesn't make sense to block embeds from the site url until the embeds are being served from the embeds domain.
See #2