IDEMPIERE-3980 Thanks to Alessandro Cordella for reporting

This commit is contained in:
Carlos Ruiz 2019-06-10 15:08:00 +02:00
parent 41f6590608
commit 1f701bbced
3 changed files with 7 additions and 0 deletions

View File

@ -482,6 +482,7 @@ public class WAttachment extends Window implements EventListener<Event>
AMedia media = new AMedia(entry.getName(), null, contentType, entry.getData()); AMedia media = new AMedia(entry.getName(), null, contentType, entry.getData());
preview.setContent(media); preview.setContent(media);
preview.setClientAttribute("sandbox", "");
preview.setVisible(true); preview.setVisible(true);
preview.invalidate(); preview.invalidate();
} }

View File

@ -237,7 +237,9 @@ public class WMediaDialog extends Window implements EventListener<Event>
AMedia media = createMedia(); AMedia media = createMedia();
preview.setContent(media); preview.setContent(media);
preview.setClientAttribute("sandbox", "");
preview.setVisible(true); preview.setVisible(true);
preview.invalidate();
} }
catch (Exception e) catch (Exception e)
{ {

View File

@ -85,6 +85,10 @@
<!-- /////////// --> <!-- /////////// -->
<!-- Miscellaneous --> <!-- Miscellaneous -->
<session-config> <session-config>
<cookie-config>
<http-only>true</http-only>
<secure>true</secure>
</cookie-config>
<session-timeout>60</session-timeout> <session-timeout>60</session-timeout>
</session-config> </session-config>