Repository navigation
Conversation
Snapmaker Orca, starting with PR#704 and released in v2.3.6, asks for X-Request-Id as an allowed header in the exploratory OPTIONS request. That is not defined in u1-moonraker Access-Control-Allow-Headers, causing the CORS enforcement to fail in the browser engine that runs the 'Upload' and 'Upload and Print' Snapmaker Orca dialogs. The result is a confusing error message for the user, mentioning XMLHttpRequest and CORS but not giving any particularly helpful information. See [Issue Snapmaker#7](Snapmaker#7) for a full description with images. Assuming the X-Request-Id was added to Snapmaker Orca with good reason, the correct fix will be to udpate the moonraker code to allow that header. This fix is confirmed by replicating the change in-situ. This can be done on machines running firmware that allows SSH by directly editing /home/lava/moonraker/moonraker/components/application.py and restarting moonraker.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Snapmaker Orca, starting with PR#704 and released in v2.3.6, asks for X-Request-Id as an allowed header in the exploratory OPTIONS request. That is not defined in u1-moonraker
Access-Control-Allow-Headers, causing the CORS enforcement to fail in the browser engine that runs the 'Upload' and 'Upload and Print' Snapmaker Orca dialogs.The result is a confusing error message for the user, mentioning XMLHttpRequest and CORS but not giving any particularly helpful information. See Issue #7 for a full description with more images.
Assuming the X-Request-Id was added to Snapmaker Orca with good reason, the correct fix will be to udpate the moonraker code to allow that header. This fix is confirmed by replicating the change in-situ. This can be done on machines running firmware that allows SSH by directly editing /home/lava/moonraker/moonraker/components/application.py and restarting moonraker.
Upload Dialog Error