servlet and cors
We have a serlvet which serves json to the front end which uses a fixed path, eg. /bin/myapi/somecall.
This works if you are calling it from the same host and port, but fails from anything else. E.g. devs hitting a local author from react from 3000 instead of 4502
The "understanding cors" page hints that you can configure this with XML which starts with <jcr:root xmlns:sling=...
The question is, where in our source code should these XML files live, and what should they be called?
There is a section in the http://localhost:4502/system/console/configMgr for "com.adobe.granite.cors.impl.CORSPolicyImpl.d5e5ad16-601e-4215-8bad-15f4980b7722" but this is not editable for some devs (i.e. save doesn't save).
Can Cors be configured with json osgi configs? If so, how does one know what number to put on the end for new ones? Is there an example of this anywhere?


