Fix bad interpretation of proxy policy

This commit is contained in:
Yarmo Mackenbach 2021-04-26 11:38:35 +02:00
parent 88cee8993a
commit ffbae32a55
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1

View file

@ -86,9 +86,7 @@ const handleBrowserRequests = (data, opts) => {
return createFallbackRequestPromise(data, opts)
break
case E.ProofAccess.SERVER:
throw new Error(
'Impossible to fetch proof (bad combination of service access and proxy policy)'
)
return createProxyRequestPromise(data, opts)
break
default:
throw new Error('Invalid proof access value')