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 <pyapar@gmail.com>
Add logic to serve original src if image does not serve from listed domains
Resolves #342