Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add note about CORS in dev mode #1633

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

eglitise
Copy link
Collaborator

While working on #1632, I noticed that I was unable to connect to Selenium Grid devices in the Inspector's dev mode, but it worked fine in production mode. The error I got in dev mode seemed to be related to CORS, so I got curious and tried to connect to a regular Appium server with CORS disabled - and I got the same error. Tried again with CORS enabled, and it worked as expected.
As this behavior is not immediately obvious, this PR adds a note in the contributing docs about the requirement to launch Appium with --allow-cors when in dev mode.

(I'm still unsure what additional configuration is needed for Selenium Grid, though - I launched Appium, Selenium Grid hub, and Selenium Grid node, all with CORS enabled, yet I was still getting the same error...)

@github-actions github-actions bot added the documentation Improvements or additions to documentation label Aug 29, 2024
@eglitise eglitise merged commit 6a998a8 into appium:main Aug 29, 2024
3 checks passed
@eglitise eglitise deleted the add-cors-note-for-dev-mode branch August 29, 2024 16:29
laib3 pushed a commit to laib3/appium-inspector that referenced this pull request Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants