Stash HTTPS request is redirecting back to HTTP URL during application links creation

Troubleshooting JIRA Integration

On this page

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Problem

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.

Diagnosis

Environment

  • Nginx running on JIRA and Stash.

Cause

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:

ReleaseDirectory
Stash 3.7 and earlier<Stash installation directory>/conf/server.xml
Stash 3.8 and later<Stash home directory>/shared/server.xml
(info) Reference from Stash upgrade guide.

Resolution

Add 'ProxyName', 'ProxyPort' and 'scheme' parameters in the Stash server.xml. For more details information, please refer Securing Stash behind nginx using SSL article.

Last modified on Mar 30, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.