Skip to content

CORS headers on API #1177

@morrigan

Description

@morrigan

Description

CORS related headers are not customizable. Error when using API:

Access to XMLHttpRequest at 'http://localhost:5052/beacon/validators' from origin 'http://localhost:2003' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Version

Docker image sigp/lighthouse 947bb6ea3cac

Present Behaviour

App can't communicate with the HTTP API because of different URLs.

Expected Behaviour

I can modify headers and pass Access-Control-Allow-Origin

Metadata

Metadata

Assignees

Labels

HTTP-APIbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions