CORS Workaround
Comments
-
If you are using a front-end server that is not iframed inside of Decisions and you are trying to use Decisions flows, then you have probably hit an issue in your browser related to CORS: [url=https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS]https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS[/url]
Because of this, you will not be able to use the Decisions endpoints. Ive created a workaround for this and published it to GitHub: [url=https://github.com/jawa-the-hutt/Decisions-CORS-Proxy]https://github.com/jawa-the-hutt/Decisions-CORS-Proxy[/url]
Its a project written in C# that will allow you to create an ASP.NET WebAPI 2 endpoint that will proxy your request to the Decisions server. This endpoint is meant to be hosted on the same server as your front-end. Please read through the readme in the project for a full explanation of the issue and how to use the project.
If you have questions or problems then open an issue in the github repository and within reason, Ill try and help you.
Howdy, Stranger!
Categories
- 4.4K All Categories
- 86 General
- 13 Training
- 212 Installation / Setup
- 1.2K Flows
- 112 Rules
- 282 Administration
- 216 Portal
- 501 General Q & A
- 719 Forms
- 353 Reports
- 3 Designer Extensions
- 48 Example Flows
- 58 CSS Examples
- 1 Diagram Tile
- 8 Javascript Controls
- 189 Pages
- 5 Process Mining
- New Features
- 187 Datastructures
- 71 Repository
- 233 Integrations
- 30 Multi-Tenant
- 27 SDK
- 81 Modules
- 60 Settings
- 27 Active Directory
- 12 Version 7
- 36 Version 8
- 143 Lunch And Learn Questions