You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to add a unit test in a project to catch the exception caused by #56. In it, I'm forced to make a remote request because ssrf_filter doesn't allow local IPs when caling SsrfFilter.get('http://api.localhost/X.json').
I am unsure of the utility of this, due to my lack of knowledge in the gem, thus I opened this issue for discussion. Note that my test does catch the exception with a local request when I manually disable the protection inside the gem.
Relevant Code
The protection is at lib/ssrf_filter/ssrf_filter.rb:129:
Use Case
I want to add a unit test in a project to catch the exception caused by #56. In it, I'm forced to make a remote request because
ssrf_filter
doesn't allow local IPs when calingSsrfFilter.get('http://api.localhost/X.json')
.I am unsure of the utility of this, due to my lack of knowledge in the gem, thus I opened this issue for discussion. Note that my test does catch the exception with a local request when I manually disable the protection inside the gem.
Relevant Code
The protection is at
lib/ssrf_filter/ssrf_filter.rb:129
:The option would disable this
reject
.The text was updated successfully, but these errors were encountered: