Hello all.
I'm getting the following issue which I'm failing to understand, these are the steps I've taken:
- Running Bonita in a server using Docker (-p 8080:8080 and -p 8443:8443)
- Modified the configuration to allow CORS and HTPS, using the following links:
- https://documentation.bonitasoft.com/bonita/7.12/enable-cors-in-tomcat-bundle
- https://documentation.bonitasoft.com/bonita/7.12/ssl
- Access the Bonita Portal using the technical user
When trying to add a new user the following error is seen in the network tab (Dev Console in Chrome):
Request URL: https://mybonitaserver.com:8443/bonita/API/identity/user/
Request Method: POST
Status Code: 401
Remote Address: mybonitaserverip:8443
Referrer Policy: strict-origin-when-cross-origin
In my BonitaServer I have added in the web.xml the following:
<init-param>
<param-name>cors.allowed.origins</param-name>
<param-value>*</param-value>
</init-param>
And
<init-param>
<param-name>cors.support.credentials</param-name>
<param-value>false</param-value>
</init-param>
Disabling CORS makes the issue go away, so I'm guessing I'm missing something in the configuration.
I really appreciate any help.
Thanks,
Max