Added Cors headers, and fixed url regex problem with digits.