Skip to content

Add Option to Include <meta name="robots" content="noindex, nofollow" /> Tag in Swagger UI #203

@ThiwakonPB

Description

@ThiwakonPB

Hey. Currently, I don't see an option to include the <meta name="robots" content="noindex, nofollow" /> tag in the section of the Swagger UI generated HTML. Or really anyway to modify the default HTML. This meta tag is for preventing search engines from indexing and following links on Swagger UI pages. Without this tag, there’s a risk that these pages might be inadvertently exposed to search engines. Which is a bit problematic for testing environments or deployed sites used for API exploration.

Right now I'm handling this by forking the repository and manually adding the tag in cowboy_swagger/priv/swagger/index.html myself. But I think maybe there should be option provided by Swagger UI to include it. Is there already a method to do this that I might be missing, or could this feature be considered for future updates?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions