Skip to content

Conversation

@robot-ranger
Copy link
Collaborator

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
@robot-ranger robot-ranger deleted the 506-add-cors branch May 29, 2025 17:19
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