Skip to content

mstahv/vaadin-custom-request-headers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example project how to customise XHR object in a Vaadin app

This is an example of the infamous hack how XHRs have been customized during the AJAX era, adapted to Vaadin. Modifies the XHR object in the browser to add a custom header to all requests.

DISCLAIMER: Although this works and the hack has been used "always", before putting this into production I encourage you to stop and think if there is a better way to achieve your goal.

To run the project, run mvn jetty:run and open http://localhost:8080 in browser.

To update to the latest available Vaadin release, issue mvn versions:update-properties

Some useful links:

About

Example project how to customise XHR object in a Vaadin app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages