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

Block confiuration by url only if url starts with http #8331

Open
speedlog opened this issue Jan 2, 2023 · 0 comments
Open

Block confiuration by url only if url starts with http #8331

speedlog opened this issue Jan 2, 2023 · 0 comments

Comments

@speedlog
Copy link

speedlog commented Jan 2, 2023

Content and configuration

I want to pass url to OpenApi contract in url.
File is in the same server as swagger-ui.
Something like that:
http://localhost:8080/swagger-ui/index.html?url=/contract/system-xyz.yml

Is your feature request related to a problem?

It's related to #7697

Describe the solution you'd like

I read security issues that could be if we read configuration from remote url.
In my case i want to serve swagger-ui from the same server where is my contract.
So allowing to load url that doesn't start with http://
or allow only if url starts with /
or allow url that is http(s)://localhost
should be enough.

@char0n Have you consider a such filter?

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