swaggo / swag

Automatically generate RESTful API documentation with Swagger 2.0 for Go.
MIT License
10.24k stars 1.17k forks source link

FAILED TO FETCH: CORS issue - mixed content #1810

Closed grumpyp closed 2 months ago

grumpyp commented 2 months ago

Describe the bug Used swag init, it generated the docs, all looks good - but somehow the docs load http:// and https:// content? Which leads to a CORS issue.

Expected behavior Only load secure https://

Screenshots image

Your swag version 1.16.3

Your go version go version go1.21.5 darwin/arm64