sparkler
sparkler copied to clipboard
URL validator used in injector is too strict
Background:
Injector uses a URLValidator utility to validate urls before injection
Problem
URL validator used in injector is too strict, often times not passing valid urls.
Example:
we cant inject http://localhost:8081, looks like the validator checks that host name is a valid domain name.
Work around:
For localhost use loopback IP 127.0.0.1
Expected solution
URL validator shall pass urls which have hostnames that many not be valid domain names.