Fix interpretation of proxy policy

This commit is contained in:
Yarmo Mackenbach 2021-04-30 15:37:13 +02:00
parent 41d3b16029
commit 304e25fed0
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1

View file

@ -77,7 +77,7 @@ const handleBrowserRequests = (data, opts) => {
case E.ProxyPolicy.ADAPTIVE:
switch (data.proof.request.access) {
case E.ProofAccess.GENERIC:
return createDefaultRequestPromise(data, opts)
return createFallbackRequestPromise(data, opts)
break
case E.ProofAccess.NOCORS:
return createProxyRequestPromise(data, opts)