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

make interdomain network request to Confluence

Mark Sinakaev March 28, 2022

How to organize an interdomain network request in order to get an avatar?
My code:

2022-03-29_00-41-47.png
Error:
2022-03-29_00-27-38.png
I have an application which has:

1) Back => Spring Boot
2) Front => ReactJs
The back requests data from the Jira some data and displays it. Works through JiraRestClient, then it passes to front via Rest Api. Working fine.

Is it possible to somehow make requests to https://wiki/rest/api/user?username=Sinakaev from the front without CORS error?
I can not find more detailed documentation on Confluence.
Confluence is an Atlassian project, we have it deployed on-premise, maybe some configs can be changed through engineers. 

1 answer

0 votes
Thiago Masutti
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 29, 2022

Hi @Mark Sinakaev 
Welcome to the Atlassian Community.

You might be able to circumvent it by working with your Confluence administrators to disable the clickjacking protection, although this might not be safe.

There might be better options to allow it for targeted systems if you can rewrite headers through proxy or load balancer.

There's an example on this Jira feature request: https://jira.atlassian.com/browse/JRASERVER-67896.

Kind regards,
Thiago Masutti

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events