Is there any way to conditionally change ‘src’ attribute in script tag in project custom code, based on domain?
For example, I have two script links:
The former is for testing purposes, the latter is for production build only.
I could’ve made some script which would dynamically create the script tag, but the test script link will still be observable via devtools, and that’s unacceptable due to security reasons.
Looking forward to get some viable solutions, thanks in advance!