Using the origin to identify apps is not correct. You need to use the manifest url instead.