Encountering CORS issue while using API Swagger plugin in confluence

Chinni Prasad July 28, 2021

Encountering CORS issue while using API Swagger plugin in confluence

1 answer

0 votes
Scott July 28, 2021

Hi Chinni,

We are the vendor for Open API Documentation for Confluence

I’m unsure if this is the specific app you are trying, or possibly one of our competitors, but you may find our documentation helpful as it includes some details on dealing with CORS issues.

I hope this helps.

Chinni Prasad July 30, 2021

Hello Scott, 
I am still unable to resolve the CORS issue, I previously have gone through the documentation. But still did not find much help on it.
Can you please let me know where should I insert the below access control

Access-Control-Allow-Origin: https://{your Confluence server}

 (for Confluence Server/Data Center) 

Regards, 
Chinni Prasad

Scott July 30, 2021

Hi Chinni,

This header needs to be in the response when fetching your JSON/YAML URL.

For example, if your API definition is  at the URL https://example.com/swagger.json , then whatever server or reverse proxy is responsible for https://example.com needs to be configured to include the CORS headers.

Hope that helps.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events