Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

sa
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 12, 2020

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
AUG Leaders

Atlassian Community Events