Hi Olli,
Earlier we were using Page.getCurrent().open(url, “blank”); but because I want to hide url & parameters I started using below FormSender extention. So my first question is , it this formSender the only option to send request as post method or is there other way?
My requirement is to open url in new tab but send it as POST method so that my url is not exposed to client. We’re on Vaadin 8. I’ve added it’s dependencies and also added it’s entry in widget set. My url is of Jasper’s report url as we’re using Jasper reports. so My code is as follows. Here my parameters(name, password) are not visible but url is still visible. Is there a way by which I can hide even my url?
FormSenderBuilder
.create()
.withUI(Page.getCurrent().getUI())
.withMethod(Method.POST)
.withAction(url)
.withValue(“name”,“Archana”)
.withValue(“password”,“mundaye”)
.withTarget(“_blank”)
.submit();
.submit();
Added below entry in widgetSet
Let’s say my url is “https://github.com/vaadin/charts/issues/148?name=archana&password=archana” then this (https://github.com/vaadin/charts/issues/148) is still visible but my name and password are not visible. So I want to hide my url as well because I don’t want client to know what application I’m using .