cowboy_swagger icon indicating copy to clipboard operation
cowboy_swagger copied to clipboard

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

Open ThiwakonPB opened this issue 8 months ago • 0 comments

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?

ThiwakonPB avatar Jun 13 '24 07:06 ThiwakonPB