PWA won't work

Maybe the manifest can’t be validated on the PWA side because of this security system:

In fact, the first code you tried to integrate looks like the security system’s one in the article I linked to.