Our version of confluence has recently been switched to https.
I have been developing a confluence rest plugin however now whenever it gets requests I get the following error:
Mixed Content: The page at '*' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint '*'. This request has been blocked; the content must be served over HTTPS.
How do I serve the plugin over HTTPS.
Do you mean in the Confluence settings?
Currently all of the local users are still using the http version and all of the remote users have switched to https. Would it be worth encouraging everyone to use the https version and to switch the confluence base url in the settings as specified on Step 4.
I think I may have accidentally deleted my initial response.
Currently the confluence base url is still set to http and people working locally are just using the http version but the https version is available.
Should I change it as specified on step 4 here. Could the issue be that when I am on the the https version it still thinks that the base url of the add-on can be accessed via http ?
Your mix of http and https is definitely going to be causing some or all of this problem.
You need to use Confluence on one single base url. If your REST call is calling out to https://something but your base url is http://something, then it's not going to work because they're not using the same locations.
Pick one base url and move all usages over to it. I'd recommend the https one of course.
Gah, I hit "enter" too quickly.
That comment only applies when the REST resource being hit is the Confluence one where Confluence has a base url that's https. You can use several ways to get to Confluence if it's been set up to listen in many ways, but internally, it thinks it is only working over one single route.
If your code is calling out to other systems, then the urls in use are entirely down to them, they don't care about Confluence's base url.
Hi my Community friends! For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...
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!
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