Forum Discussion
Hey Newbie1
It's a little hard to visualize what you're after. As you may know CORS is a browser thing, not a Swagger thing.
If you're referring to the Try-it-out feature of Swagger UI then CORS would need to be enabled on your API Server (or proxy), for those features that you'd like browser to be able to use. Alternatively if you're only interested in render SwaggerUI on different websites, then you should be able to get away with no CORS, or minimal configuration.
It is unfortunately a security you and your organization will need to decide on. If you enable CORS for all websites, it may be a security risk.
If you have question more related to Swagger, or if I've misunderstood feel free to shout.
A great resource for CORS is https://enable-cors.org/
Thanks a lot for the reply. I will describe more specifically on Friday as I currently have food poisoning. 🙂
Related Content
- 5 years ago
- 3 years ago
- 4 years ago
Recent Discussions
- 2 days ago
- 2 days ago
- 19 days ago