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

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. 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

Summary

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:

1 Mixed content: The page at 'https://bitbucket-url' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://bitbucket-url'. This request has been blocked; the content must be served over HTTPS.

Diagnosis

Environment

  • A reverse proxy server forwarding HTTPS to Bitbucket Server.

Cause

The proxy configuration is not configured properly for Bitbucket Server. For more details information, refer to Secure Bitbucket behind nginx using SSL.

Solution

Resolution

Bitbucket Server 5.0+

Add 'proxy.name', 'proxy.port', 'secure' and 'scheme' parameters in the bitbucket.properties.

Example:

1 2 3 4 server.scheme=https server.proxy-port=443 server.proxy-name=mycompany.com server.secure=true

Bitbucket Server 4.x and below

Add 'ProxyName', 'ProxyPort' and 'scheme' parameters in the Bitbucket Server server.xml.

Updated on April 2, 2025

Still need help?

The Atlassian Community is here for you.