webiny-js
webiny-js copied to clipboard
Pagebuilder: Iframe component's validation is too restrictive.
Version
5.26.0
Operating System
macos 12.2.1
Browser
Chrome 101.0.4951.64
What steps will reproduce the bug?
- Create an iframe on a page and start typing a url in the field. The admin app will crash when validation fails on https://w
- Create an iframe on a page, and try pasting the src with get parameters (e.g. google maps from this site: https://www.maps.ie/create-google-map/). The admin app will also crash. 3
What is the expected behavior?
Validation shouldn't cause the app to crash, and any url including get parameters should work.
What do you see instead?
Crashed app.
Additional information
No response
Possible solution
No response
Yes I've just validated this, see attached screenshot.

We're using our validation package (validation.validateSync(data.url, "url:allowHref"); for this string, and it seems it could be a little too aggressive. It's fine for YouTube but also fails with our call booking service (https://webiny.orthisbe.com/calendar/team/t/1#/select-time)