We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22f2b56 commit 49a72e0Copy full SHA for 49a72e0
libs/helpers.js
@@ -218,9 +218,10 @@ exports.patternHasSameOrigin =
218
219
// Possible pattern and is split for pro vs. dev
220
// NOTE: This re is quite sensitive to changes esp. with `|`
221
+// This routine is fuzzy due to the lack of https on short domain
222
exports.patternMaybeSameOrigin =
223
(isPro
- ? '(?:https?:)?(?://openuserjs\.org(?::' + exports.securePort + ')?)?'
224
+ ? '(?:https?:)?(?://openuserjs\.org(?::' + exports.securePort + ')?|//oujs\.org)?'
225
: '(?:http:)?(?://localhost:' + exports.port + ')?')
226
227
exports.isSameOrigin = function (aUrl) {
0 commit comments