Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Content img src URLs redirect to http, breaking in safari

When getting `content` from the Cloud API, the delivered html contains img src urls formatted in the following way:

src=\"https://name.atlassian.net/wiki/download/attachments/1768720069/Screen%20Shot%202020-10-12%20at%202.04.48%20PM.png?version=1&modificationDate=1602605753562&cacheVersion=1&api=v2\" 

Which, in Safari, redirects to a secondary URL to download the attachment, which is HTTP, causing these errors:

Screen Shot 2020-10-21 at 1.04.51 PM.png

URL used:

https://<org>.atlassian.net/wiki/rest/api/content/1768720069?expand=body.export_view

Is this an oversight? Or is there a way to get simpler URLs embedded in the export_view html? Thanks

1 answer

0 votes
Diego Atlassian Team Oct 28, 2020

Hello @Chris Miller!

As I understand, you are facing alerts about Mixed Content coming from Confluence. With this in mind, please allow me to ask a few questions. Here we go:

  1. Are those warnings present when using another browser?
  2. How exactly did you make the call to trigger those warnings?
  3. Are you unable to download attachment from your pages?
  4. How exactly did you trigger those warnings in Safari?

The export_view exports the page body content into HTML format with absolute links to content within it. There is a conversion happening, I believe that the mixed content is created during the creation of the links for the HTML content.

 

Let us hear from you!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
Community showcase
Published in Confluence Cloud

Get to know the Confluence team!

Go “behind the screen” to meet some of the Confluence Cloud team. In this video series, we tackle some of the hard-hitting questions you never knew you wanted the answer to!  Meet some of the ...

236 views 0 10
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you