I need open a new page…
With my code (up) i get the new page correctly by i dont set the header:
response.setHeader (“Accept-Language”, “de”);
response.setHeader (“Authorization”, “Bearer f453b3c2-36a0-4207-b028-dead0e81c1e8”); // Your test header
By response.setHeader (“Location”, “url”); works (i suppose i need sent the header in resquest not in response)… but doesnt exit something like request.setHeader(“”);
Hi.
I need to do, from my application to Vaadin a button that when pressed open a new page of an external application (google, amazon, etc.) but passing in the header an authentication token, for example “Authorization”: "Bearer f453b3c2-36a0- 4207-b028-dead0e81c1e8 ".
As much as I searched, I have not found anything.
The closest thing is this code:
Although now that I look at it, BrowserWindowOpener does allow parameters as well, so a custom extension might not be needed. Haven’t ever tried that in practice, though.