Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ThiwakonPB opened this issue Jun 13, 2024 · 0 comments

Comments

@ThiwakonPB
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant