Fix getstarted undefined referrer issue with IPDB (#1866)

Skip Referer check on preflight request (OPTIONS) and set Referrer-Policy to origin-when-cross-origin in response to OPTIONS request. Once Referrer-Policy is set on the subsequent POST request referrer is set by the browser to expected value.
This commit is contained in:
Shahbaz Nazir
2017-11-17 20:35:57 +01:00
committed by GitHub
parent f53eb1e3e7
commit bc4f8fcab5
4 changed files with 19 additions and 8 deletions

View File

@@ -49,6 +49,11 @@ data:
# are available to external clients.
proxy-frontend-port: "4443"
# proxy-referrer-policy defines the expected behaviour from
# browser while setting the referer header in the HTTP requests to the
# proxy service.
proxy-referrer-policy: "origin-when-cross-origin"
# expected-http-referer is the expected regex expression of the Referer
# header in the HTTP requests to the proxy.
# The default below accepts the referrer value to be *.bigchaindb.com