Cors by Example

More often than not CORS mean little more to developers than just getting rid of the infamous browser error in order to continue cranking out features as soon as possible. In other words, it’s not the best understood concept out there. Hence, to shed more light upon the topic, I’d like to give some working examples of CORS setups and show why they work. The more detailed explanation about the backing concepts I relinquish to the excellent MDN documentation if you’d like to dig deeper....

August 30, 2019 · 5 min · schoeffm

Testing Web Components

Testing web-components in isolation can be a challenging task. The (current) usual suspects in this area still lack support for the standard and thus cannot be used (at least at the time of this writing). Also, the web is swamped by posts about frameworks and thus finding good example projects or tutorials is also challenging.Finally, we found, at least for our project, a good solution which does the job and whose setup I’d like to write down/preserve (find the corrsponding code in this repo). ...

August 2, 2019 · 6 min · schoeffm

Response streaming between JAX-RS and Web-Components (Part 2)

In part one we had a look at a JAX-RS endpoint that streams its content to the requesting client. Now I’d like to show how the fetch-API can be used to consume that streamed content in a web component. ...

July 28, 2019 · 4 min · schoeffm