-
-
Notifications
You must be signed in to change notification settings - Fork 111
Comparing changes
Open a pull request
base repository: LibreSign/libresign
base: main
head repository: LibreSign/libresign
compare: pr-7342
- 6 commits
- 6 files changed
- 1 contributor
Commits on Apr 4, 2026
-
fix(csp): allow same-origin worker-src on sign pages
pdf-elements 1.1.5 switched the PDF worker to an ES module worker (Worker type:module). Classic workers fall back to script-src; module workers only match worker-src, which was unset. The browser blocked the worker, pdf.js fell back to a fake worker, and the sign page stayed on "Loading...". Add worker-src 'self' to the ContentSecurityPolicy on both PageController::index() and PageController::sign() so module workers can load from the same origin. Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for f9f6de4 - Browse repository at this point
Copy the full SHA f9f6de4View commit details -
test(csp): cover worker-src on PageController sign pages
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for fe36c27 - Browse repository at this point
Copy the full SHA fe36c27View commit details -
refactor(playwright): simplify sign-link extraction to path-only
Remove the resolveAgainstPlaywrightBaseUrl call from extractSignLink. Returning only the pathname/query/hash works for both environments: - CI (PLAYWRIGHT_BASE_URL=http://localhost:8080): page.goto resolves the relative path against the baseURL. - Local container (PLAYWRIGHT_BASE_URL=https://nginx): same. The full-URL resolution was added as a workaround but is unnecessary and was masking the real root cause (missing worker-src CSP). Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 178b8f8 - Browse repository at this point
Copy the full SHA 178b8f8View commit details -
test(playwright): add unit tests for extractSignLink
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 3b29e05 - Browse repository at this point
Copy the full SHA 3b29e05View commit details -
test(e2e): configure native signing and disable tsa for sequential si…
…gner flow - Set signature_engine to PhpNative for native PDF signing - Delete tsa_url app config to avoid unreachable TSA dependency in local tests - Replace UI-based logout with cookie clearing and about:blank navigation - Normalize public sign link resolution against page origin to handle local host differences - Improve test stability with origin-relative navigation for sequential signers Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 080c13d - Browse repository at this point
Copy the full SHA 080c13dView commit details -
test(e2e): configure native signing and disable tsa for email token flow
- Set signature_engine to PhpNative for native PDF signing - Delete tsa_url app config to avoid unreachable TSA dependency in local tests - Replace UI-based logout with cookie clearing and about:blank navigation - Normalize public sign link resolution against page origin to handle local host differences - Simplify post-sign verification by asserting final state instead of revisiting link - Remove flaky re-navigation that failed due to internal hostname resolution issues Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for c202d32 - Browse repository at this point
Copy the full SHA c202d32View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff main...pr-7342