We are calling multiple APIs in our addon to enable lot of features in our addon. But our application server is rejecting the request due to CORS error.
We tried whitelisting the origin which in generated in the addon but it seems the origin changes on every installation on any machine.
I can not all all domains to call my API. Basically I can not allow “*” as CORS policy on application server.
Please help us with the suggestion on
- How to make the addon origin as some static UUID value.
- How to configure application server CORS policy to allow only my addon to make API calls?