Whats wrong with my code? i have try on localhost its work well

Tell us what’s happening:

Your project link(s)

githubLink: https://github.com/YogiPristiawan/url.git

Challenge: URL Shortener Microservice

Link to the challenge:

If the url is http://example.com?q=123, then origin is http://example.com (without query string).
URL() - Web APIs | MDN