iris-web
iris-web copied to clipboard
[FR] Enabling CORS
Problem When using another web-interface to interact with IRIS (Case creation for example) CORS is triggered and request is not allowed
Describe the solution you'd like An option to enable CORS would be interesting, for example by setting a variable to allow this kind of use-cases, maybe allowing a list of domains to perform requests.
Describe alternatives you've considered
The current workaround we have is to set add_header Access-Control-Allow-Origin "*" always; just before location / in the nginx.conf file.
Additional context A useful function to use from an external tool can be for example a case opening request.