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

prettify-appspot.com blocks xxx.attlassian.net api requests to itself - cors Edited

prettify-appspot.com blocks xxx.attlassian.net api requests to itself - cors

I have javascript code inside an html-macro page content in a whatever.atlassian.net/wiki

page. It calls api at https://performancesystems.atlassian.net/wiki/rest/api/....

but gets blocked by CORS, because it is actually being executed under location

https://prettify-******.appspot.com/html?...

Can I get around this prettify service, or permis CORs between prettify...appspot.com and whatever.atlassian.net/wiki ?

=======

I Got a good answer from Nar Kumar of Bitwelt Software.

From inside the html-macro instance use AP.request

It bypasses CORS lmitation to Concluence REST API

Nar Kumar directed me to https://developer.atlassian.com/cloud/confluence/jsapi/request/

 

0 answers

Suggest an answer

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

Lessons and Learnings: Six Months of Working Remote [Discussion]

Hey there, folks! For most of us, the past six months- yes, you read that right- have been a journey. More people than ever before have pivoted to working remotely, and navigating being on-scre...

5,966 views 4 6
Join discussion

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