Hey Retool Community,
Problem Summary:
In Org A (Retool cloud-hosted), the custom component works as expected: the browser prompts for webcam permissions, access is granted, and everything functions normally.
In Org B (Retool self-hosted), (on the same device, same browser), the webcam component does not prompt for permission, and I get this error:
Webcam Error: SecurityError: Invalid security origin
- I’ve tested across browsers (Chrome, Edge, Firefox), cleared cache, used Incognito, and confirmed HTTPS is in use.
Additional Notes:
- I’m accessing Org B through a VPN, which could be affecting network policies or origin trust.
- Even when I manually allow webcam permissions for the domain in browser settings, the error persists.
- Verified that
window.isSecureContext
istrue
, so that doesn't seem to be the issue.
Technical Setup:
- Retool version: 3.148.0
- Library:
react-webcam
- Framework: React (with
@tryretool/custom-component-support
) - SSL: HTTPS is enabled
- Browser Security: Camera and mic are enabled in settings
Any ideas, suggestions, or things I should look into would be incredibly helpful. Thanks!