Trace:
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
vaadin:cors [2018/02/06 12:05] admin created |
vaadin:cors [2020/07/03 17:14] cduncan [Howto] |
||
---|---|---|---|
Line 3: | Line 3: | ||
==== CORS ==== | ==== CORS ==== | ||
- | All details about [[http://en.wikipedia.org/wiki/Cross-origin_resource_sharing|Cross-origin resource sharing]]. | + | All details about [[http://en.wikipedia.org/wiki/Cross-origin_resource_sharing|cross-origin resource sharing]]. |
- | ==== Use-case ==== | + | ==== Use-Case ==== |
- | Embedding a vaadin application in your CMS (e.g. Joomla, Typo3). The CMS runs in an hosted environment without Java application server (standard and cheap web hosting). | + | Embedding a Vaadin application in your CMS (e.g., Joomla, Typo3). The CMS runs in an hosted environment without Java application server (standard and cheap web hosting). |
- | ==== Howto ==== | + | ==== How To ==== |
- | There's an excellent [[https://vaadin.com/blog/-/blogs/using-cors-with-vaadin|blog post from vaadin]]. We've a ready-to-use solution added to our vaadin UI. | + | There's an excellent [[https://vaadin.com/blog/-/blogs/using-cors-with-vaadin|blog post from Vaadin]]. We have a ready-to-use solution added to our Vaadin UI. |
- | It's really simple to use. Add following parameter to your web.xml: | + | It's really simple to use. Add the following parameter to your web.xml: |
<file xml> | <file xml> | ||
Line 150: | Line 150: | ||
**<fs 20px>Information</fs>** | **<fs 20px>Information</fs>** | ||
- | There's a problem in vaadin, with push mechanism: https://dev.vaadin.com/ticket/14477 | + | There's a problem in Vaadin with push mechanism: https://dev.vaadin.com/ticket/14477 |
A workaround for Tomcat8, via web.xml: | A workaround for Tomcat8, via web.xml: | ||
Line 161: | Line 161: | ||
</file> | </file> | ||
- | Set the parameter for the servlet which is used multiple times, e.g.: | + | Set the parameter for the servlet, which is used multiple times, e.g.: |
<file xml> | <file xml> |