feat: Adding "CORS" policy to opentrons APP #7599
Labels
feature-request
A request for a new feature or a change that isn't a bug. May require further triage or scoping.
robot-svcs
Falls under the purview of the Robot Services squad (formerly CPX, Core Platform Experience).
Overview
We are trying to interact with the opentrons API remotely and were already very successful with sending requests through python. Now we would like to integrate the API into the openflexure server system using the imjoy.io plugin environment. Wei, the creator of ImJoy and I tried creating a simple toggle-button plugin:
to remote control the opentrons within the plugin. The relevant code snippet is this here (a javascript post request as a ImJoy plugin):
When executing the plugin and sending the POST, we get the following error:
Implementation details
Wei suggested to implement the following fix inside the
app.py
(opentrons/robot-server/robot_server/service/app.py
):in order to disable CORS.
Do you think this is possible? Or is this a very user-specific case?
Design
Acceptance criteria
Solved, if we can remote control the opentrons through an ImJoy plugin.
The text was updated successfully, but these errors were encountered: