Skip to content

fastapi favicon causes cross-origin error in Swagger #1768

@KlausGlueckert

Description

@KlausGlueckert

Since including "https://fastapi.tiangolo.com/img/favicon.png", Swagger / Redoc will throw JS Errors because cross-origin

Javascript Error when loading Swagger /docs

VM33:1 Fetch API cannot load https://fastapi.tiangolo.com/img/favicon.png. Request mode is "same-origin" but the URL's origin is not same as the request origin http://<ip>:80

Could you include the icon locally or allow overriding the url in the

app 

thank you!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions