Ask a Question

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

Lloyd_Tom
Regular Visitor

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?

0 REPLIES 0
cancel
Showing results for 
Search instead for 
Did you mean: