Stash HTTPS request is redirecting back to HTTP URL during application links creation
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
サーバー*製品のサポートは 2024 年 2 月 15 日に終了しました。サーバー製品を利用している場合は、アトラシアンのサーバー製品のサポート終了のお知らせページにて移行オプションをご確認ください。
*Fisheye および Crucible は除く
問題
When try to create an Application Links to JIRA, a timed out error message shows up in background and saw this Javascript error message in the browser console:
Mixed content: The page at 'https://stash-url' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://stash-url'. This request has been blocked; the content must be served over HTTPS.
診断
環境
- Nginx running on JIRA and Stash.
原因
ProxyName, ProxyPort and scheme parameters is not configured in the Stash server.xml
file or the parameters are configured in the wrong directory due to the Stash latest changes:
リリース | ディレクトリ |
---|---|
Stash 3.7 and earlier | <Stash installation directory>/ conf/server.xml |
Stash 3.8 and later | <Stash home directory> /shared/server.xml |
ソリューション
Add 'ProxyName', 'ProxyPort' and 'scheme' parameters in the Stash server.xml. For more details information, please refer Securing Stash behind nginx using SSL article.