Skip to content

Instantly share code, notes, and snippets.

View samie's full-sized avatar
🇫🇮
Working from home

Sami Ekblad samie

🇫🇮
Working from home
View GitHub Profile
@igorstojanovski
igorstojanovski / vaadin-login-view.html
Created October 25, 2018 21:31
Vaadin login layout example
<link rel="import" href="../../bower_components/polymer/polymer.html">
<link rel="import" href="../../bower_components/iron-form/iron-form.html">
<link rel="import" href="../../bower_components/vaadin-text-field/src/vaadin-text-field.html">
<link rel="import" href="../../bower_components/vaadin-text-field/src/vaadin-password-field.html">
<link rel="import" href="../../bower_components/vaadin-button/src/vaadin-button.html">
<dom-module id="login-view">
<template>
<style>
@samie
samie / EmbeddedVaadinCORSServletSample.java
Last active June 19, 2018 06:42
Using CORS with Vaadin
@WebServlet(value = "/*", asyncSupported = true)
@VaadinServletConfiguration(productionMode = false, ui = MyVaadinUI.class)
public static class MyCORSServlet extends VaadinServlet {
/**
* Override to handle the CORS requests.
*/
@Override
protected void service(HttpServletRequest request,
HttpServletResponse response) throws ServletException,