Is there a way to pass development browser flags in IntelliJ Idea (or WebStorm) ? (as it is in chrome "unsafely-treat-insecure-origin-as-secure" StackOverflow answer)
If I try to get user geolocation with
navigator.geolocation.watchPosition
I get this error and it doesn't allow me to debug my webapp directly from IntelliJ
But I successfully debug it in Chrome in dev tools
Seems to be in IntelliJ there is no place to add dev-flags
Settings (Preferences on macOS) | Tools | Web Browsers
Go there, find your browser (or just create your own custom entry) and add command line arguments or select custom data directory (that points to existing user profile) there.
To ensure that those flags/params will be applied you would need to have that browser closed when launching your Run/Debug Configuration.
In your case you should add
--unsafely-treat-insecure-origin-as-secure="http://192.168.1.101:3000"
or any other flag separated with a space.