Skip to content

Commit cce5cd7

Browse files
authored
fix canFetch origin issue
Originally found by @jexjws
1 parent 32926b8 commit cce5cd7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/containers/tw-security-manager.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ class TWSecurityManagerComponent extends React.Component {
281281
if (isAlwaysTrustedForFetching(parsed)) {
282282
return true;
283283
}
284+
const origin = (parsed.protocol === 'http:' || parsed.protocol === 'https:') ? parsed.origin : null;
284285
const {showModal, releaseLock} = await this.acquireModalLock();
285286
if (fetchOriginsTrustedByUser.has(origin)) {
286287
releaseLock();

0 commit comments

Comments
 (0)