By Benjamin P
A simple solution to a simple problem. I expected a concise answer to already be out there but I could not find it; so I wrote it.
If you are interested in the details surrounding this solution, read on after the code snippets.
Config class extending WebSecurityConfigurerAdapter: