This PR aims to prevent the e2e va test to fail when ran against local env (localhost).
VA E2E tests are currently failing because we use a cookie to store the va token on initial request but use sameSite = none. But in localhost env the cookie will not be properly set/retrieved because of that policy.
As a result, the test fails with a Authentication missing to access this content error.
The same issue happens when testing multi-id mode (preview) locally as we store the content token passed in the preview URL into a cookie with the same policy.
This PR aims to prevent the e2e va test to fail when ran against local env (localhost).
VA E2E tests are currently failing because we use a cookie to store the va token on initial request but use
sameSite = none
. But in localhost env the cookie will not be properly set/retrieved because of that policy.As a result, the test fails with a
Authentication missing to access this content
error.The same issue happens when testing multi-id mode (preview) locally as we store the content token passed in the preview URL into a cookie with the same policy.