2017-01-25 16 views
0

我想通過https訪問myapp.appspot.com。https在myapp.appspot.com在未登錄的情況下在Firefox中引發錯誤

app.yaml我已經這樣做了配置:

- url: /.* 
    script: main.app 
    login: optional 
    secure: always 

當使用Firefox訪問它,它拋出我這個錯誤而不能訪問該頁面。

Your connection is not secure 

The owner of www.myapp.appspot.com has configured their website improperly. 
To protect your information from being stolen, Firefox has not connected to this website. 

This site uses HTTP Strict Transport Security (HSTS) to specify that Firefox may only connect to it securely. 
As a result, it is not possible to add an exception for this certificate. 
  • 我已經使用Chrome測試我的網站,它的作品。

我發現這個在App Engine中的文檔:

It is possible to use to use Strict-Transport-Security in your App engine. 
In order to add HTTP Strict-Transport-Security headers (HTST) 
to your app, you must be implement the headers within your app's code, 
not within your app's config file (app.yaml or appengine-web.xml). 

https://cloud.google.com/appengine/kb/#hsts

但我不知道這意味着什麼。

我失蹤了什麼?

謝謝。

+1

你沒有試過它www嗎? – Aaron

+0

謝謝。這工作................................................ ...... – mclzc

+0

真的不敢相信。這真是超級搞笑。 – mclzc

回答

1

而不是

https://www.myapp.appspot.com 

嘗試

https://myapp.appspot.com 

即不帶www。我相信除了版本號的情況外,GAE不支持子子域。

相關問題