-
Notifications
You must be signed in to change notification settings - Fork 273
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
feat: validate external domains #343
Conversation
Codecov Report
@@ Coverage Diff @@
## main #343 +/- ##
==========================================
- Coverage 59.36% 59.30% -0.07%
==========================================
Files 26 26
Lines 598 602 +4
Branches 188 188
==========================================
+ Hits 355 357 +2
- Misses 243 245 +2
Continue to review full report at Codecov.
|
Thanks for pull-request @farnabaz. I think we shall move this validation out of provider implementation and always validate to externalize URLs when |
On which file/function can he implement the validation @pi0 ? |
I think here we can add the hostname check: Line 97 in d9aeae2 |
I moved domain validation into Does it requires other changes @pi0? |
Changes look good @farnabaz 👌 I'm adding a change to ipx using hostname to use unified method and avoid startsWith check for vercel |
|
Co-authored-by: pooya parsa <[email protected]>
Add logic to serve original src if image does not serve from listed domains
Resolves #342