3

无法从 Safari 和 Brave 以外部身份登录用户。Safari 的解决方法是在设置菜单中禁用阻止跨站点跟踪。还有另一个使用 gcloud iap 设置设置的选项,如https://cloud.google.com/sdk/gcloud/reference/iap/settings/set中所述,我尝试过但我收到此错误:FAILED_PRECONDITION:前提条件检查失败。

我还尝试按照https://quabr.com/59905271/how-do-you-enable-cors-requests-to-a-google-compute-engine-iap-enabled-load-bala中的步骤操作,我得到了类似的错误。

4

2 回答 2

2

Customizing IAP settings is now available only as part of a paid enterprise security subscription (BeyondCorp Enterprise). You can see the information from this article.

That article describes how to customize Identity-Aware Proxy (IAP) settings. With these settings, you can control behaviors including:

  • Compatibility with Anthos and Istio on Google Kubernetes Engine.
  • The handling of CORS preflight requests.
  • How users are authenticated.
  • The error page shown to users when access is denied.

An alternative is that you can support CORS requests on your App Engine by adding HTTP header to your app.yaml, for example:

handlers:
- url: /
  ...
  http_headers:
    Access-Control-Allow-Origin: https://URL
  # ...

Note: if you wanted to allow everyone to access your assets, you could use the wildcard '*', instead of your URL

于 2020-11-06T02:25:54.607 回答
1

这里同样的问题。

我在 suscess 中多次使用这个命令,直到上周,但不再工作了。

cat > settings <<EOF
accessSettings:
  corsSettings:
    allowHttpOptions: true
EOF

gcloud iap settings set settings --project=PROJECT-ID
于 2020-11-05T21:47:35.933 回答