Skip to content

Commit 49a72e0

Browse files
authored
GDPR13B1 (OpenUserJS#1511)
* Alternate grouping... similar yet fuzzy Post OpenUserJS#1508 OpenUserJS#1509 OpenUserJS#1510 Auto-merge
1 parent 22f2b56 commit 49a72e0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libs/helpers.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,10 @@ exports.patternHasSameOrigin =
218218

219219
// Possible pattern and is split for pro vs. dev
220220
// NOTE: This re is quite sensitive to changes esp. with `|`
221+
// This routine is fuzzy due to the lack of https on short domain
221222
exports.patternMaybeSameOrigin =
222223
(isPro
223-
? '(?:https?:)?(?://openuserjs\.org(?::' + exports.securePort + ')?)?'
224+
? '(?:https?:)?(?://openuserjs\.org(?::' + exports.securePort + ')?|//oujs\.org)?'
224225
: '(?:http:)?(?://localhost:' + exports.port + ')?')
225226

226227
exports.isSameOrigin = function (aUrl) {

0 commit comments

Comments
 (0)