Azure / Azure/api-center

Unable to fetch api spec due to CORS

Open
#53 0 comments 0 reactions 0 assignees View on GitHub
Bug Untriaged
Dominant language
PowerShell
Stars
45
Forks
21
Avg merge
21m
Merged PRs (30d)
1

Description

Greetings,

We have an AsyncAPI defined in APIC and want to create a swagger UI like page based on the spec using a library. I am trying to fetch the spec through the url that is constructed but it fails with status code 200 and CORS although I can see the response body and the actual spec in the dev tools. If I call the url through Postman it works. Not sure if the issue is my code or if CORS has to be setup in the blob storage that holds the spec.

# Screenshots
![image](https://github.com/user-attachments/assets/5ddfc745-9f54-41e1-83f9-a2798b8cbc17)

![image](https://github.com/user-attachments/assets/b9806b84-bff3-4e37-b5c8-06e407ba1dc1)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.