question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Whitelist specific redirect URLs as an alternative to Vaadin-Refresh

See original GitHub issue

Based on a discussion in https://stackoverflow.com/a/60389722/2376954, there may be situations where it’s not practical to add the Vaadin-Refresh token to a redirected or otherwise intercepted response.

As an alternative, the client engine could detect whether a redirect has happened (either by migrating to the fetch API or by looking at whether responseURL has changed) and if the new URL matches a rule (e.g. a regular expression) configured for the application, then the new target URL is loaded as a top-level navigation instead of interpreting the response as UIDL.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Legiothcommented, Feb 26, 2020

It may actually even make sense to look at the content type of the response as well. If it’s e.g. text/html instead of the expected application/json, then it may be quite safe to assume that a top-level navigation to the same URL may be appropriate.

0reactions
Legiothcommented, Jun 18, 2021

I guess the main reason for not sending an Accept header is that nobody has realized it would make sense to send one. One such reason has now been discovered.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Security in Vaadin applications | Advanced Topics | Flow
Vaadin lets you choose which authentication and authorization framework you want to use, instead of bundling any specific one.
Read more >
Spring Security Reference
These concepts are common, and not at all specific to Spring Security. ... Instead of redirecting to a URL upon the successful logout, ......
Read more >
Wicket 9.x Reference Guide
Appendix C: Lost In Redirection With Apache Wicket ... is requested or when the component or one of its ancestors is refreshed via...
Read more >
Search Results - CVE
Jenkins Google Login Plugin 1.4 through 1.6 (both inclusive) improperly determines that a redirect URL after login is legitimately pointing to Jenkins. CVE-2022 ......
Read more >
Load Testing of Vaadin Flow applications - CORE
Alternatives and possible improvements to the proposed solution are reviewed. ... Keywords: Load Testing, Vaadin, Performance, JMeter, Gatling, Java ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found