Bug 1804687 - Allow https://example.com as a Firefox Profiler base_url. r=julienw

Differential Revision: https://phabricator.services.mozilla.com/D164231
This commit is contained in:
Paul Adenot 2022-12-08 14:52:43 +00:00
parent 255408cc51
commit 0a5a3ee289

View File

@ -256,7 +256,7 @@ export function validateProfilerWebChannelUrl(targetUrl) {
// the official frontend URL for testing.
if (
// Allow a test URL.
targetUrl === "http://example.com" ||
/^https?:\/\/example\.com$/.test(targetUrl) ||
// Allows the following:
// "http://localhost:4242"
// "http://localhost:4242/"