Unable create application link from Confluence due wrong protocol

Hi there,

we have switched Confluence from http to https. I have removed old application links, but I'm not able to create new ones. And yes, server base url is https to smile

The request contains wrong protocol in link href attrubute

<applicationLink>
<link rel="self" href="http://example.com"/>
<id>5a328214-45e5-31ea-98f1-b8de1d5a730c</id>
<typeId>jira</typeId>
<name>xxx</name>
<displayUrl>https://jira.example.com</displayUrl>
<iconUrl>
https://example.com/16jira.png
</iconUrl>


<iconUri>
https://example.com128jira.png
</iconUri>


<rpcUrl>https://jira.example.com</rpcUrl>
<isPrimary>true</isPrimary>
<isSystem>false</isSystem>

</applicationLink>

The browser throws error

XMLHttpRequest cannot load http://example.com/rest/applinks/3.0/applicationlink/5a328214-45e5-31ea-98f1-b8de1d5a730c?_=1455816144194. Response for preflight is invalid (redirect)

This error is thrown only if I enable cross protocol request, if not, it ends up with error that it's not possible to do request to http from https.

 

Confluence in browser runs on https, all resources are loaded via https, why only application link thinks it runs on http? How do I convince Confluence to understand that it should use https?

 

Thank you.

1 answer

1 accepted

When I moved apache http infront of JIRA and Confluence - my application link stopped functioning smile

I had to create an unproxied link between the two to restore the app link functionality .

Yep, you are right. In our case it was nginx, which redirected to http, so it looked like it runs on https, but actualy it was http internaly in confluence.

I'm accepting your answer, thanks.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,829 views 27 11
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you