Forum Discussion

Lloyd_Tom's avatar
Lloyd_Tom
Regular Visitor
3 years ago

Swagger UI try it out returns TypeError: Network Failed to Fetch

Hello, I'm using go-swagger to generate my swagger.yaml file with my Swagger UI and my swagger test server generated from said swagger.yaml file. When I click the try it out button in swagger UI, I get the following error "TypeError: Network Failed to Fetch". Attached are images of the responses from Firefox and Chrome. All of my research keeps pointing me to CORS and “Access-Control-Allow-Origin: *“, but there is no explanation on the hows and wheres, especially for Golang. How do I fix this error?

No RepliesBe the first to reply