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

add cors http headers to demo agent cfg #514

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

robot-ranger
Copy link
Contributor

Added cors http headers to make demo agent accessible from webapps for testing and demonstration.

I added the following to demo/compose/agent/agent.cfg:

HttpHeaders {
	Access-Control-Allow-Origin = *
	Access-Control-Allow-Methods = GET
	Access-Control-Allow-Headers = Accept
}

Allows all origins, but limits to GET requests. Im not a security professional so tell

closes #506

@robot-ranger robot-ranger changed the title add cors http headers add cors http headers to demo agent cfg Jan 15, 2025
@wsobel wsobel self-requested a review January 16, 2025 01:23
@wsobel wsobel merged commit d3523d6 into mtconnect:main Jan 16, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Request: Add CORS header config to demo.mtconnect.org agent
2 participants