Good morning.
Can the Bonita Studio API be consumed from another domain with a frontend application or can it only be done with a backend?
My frontend is a develop in react with typescripts
Cheers
Understood, so it has nothing to do with the Studio. Those are the Runtime REST API.
You may use them in your own frontend if the server allow you to using a CORS configuration.
What kind of API do you expect ?
hello romain.bioteau.
I do not understand your question.
What do you mean by ...What kind of API do you expect ?
What is for you the Studio API ? Such thing does not exists so I’m curious of what you are thinking
I am referring to the api https://documentation.bonitasoft.com/bonita/2022.1/api/rest-api-overview
It is NOT a project of mine. I want to use that api with a frontend of mine built in react
Ok romain.bioteau.
Excuse my bad explanation
This I have already added CORS configuration.
But I have no solution
<init-param>
<param-name>cors.allowed.origins</param-name>
<param-value>http://localhost:443</param-value>
</init-param>
browser console writes
Access to XMLHttpRequest at 'http://localhost:8080/bonita/loginservice?username=walter.bates&password=bpm&redirect=false' from origin 'http://localhost:443' has been blocked by CORS policy: Response to preflight request doesn 't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
any solution for this?
Cheers