response body is no content, but if in real browser return json/string
please help, if i open my apps from real browser will return this
but if I open it from "try it out" return this
I only change index.html
/* url: "http://petstore.swagger.wordnik.com/api/api-docs", */ url: "http://localhost:8080/pena-im/api-docs",
Am I missing some configuration ? by the way I'm just using dist folder, not building from source
Thanks in advance
Are you opening the swagger-ui from the filesystem? This is most likely a cors issue:
https://github.com/wordnik/swagger-core/wiki/CORS
yes you're right @fehguy thanks a lot. issue solved. pls close this :)
Great
If you are using .NET Core. Using this in startup.cs file
services .AddMvc() .AddJsonOptions(x => x.SerializerSettings.ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore);