ONSdigital / dp-find-insights-poc-api

Find Insights Proof of Concept
MIT License
1 stars 0 forks source link

add CORS '*' header to responses on data endpoint from api.go #113

Closed VivianAllen closed 2 years ago

VivianAllen commented 2 years ago

Add 'Access-Control-Allow-Origin: *' to responses from /dev/hello/{dataset} endpoint from the server in api.go. This change needed to allow web apps to consume this endpoint.

How to review

pull code build and run API server locally with 'make debug' run inttests against locally running server by cd-ing to inttests/ and running 'make test-local', verify CORS tests pass.

Who can review

Anyone