I am using a Docker based HTTP service and it seems like my responses are missing some headers.
When I run my service locally, these are my headers:
➜ ~ curl -I -S -X GET "http://localhost:3000/public.fires.json" HTTP/1.1 200 OK content-length: 307 content-type: application/json access-control-allow-origin: * date: Thu, 15 Jul 2021 22:20:26 GMT
However, the response headers are missing the critical
access-control-allow-origin header, which I need for CORS compliance, when I run the same service in Render:
➜ ~ curl -s -I -X GET "https://martin.onrender.com/public.fires.json" HTTP/2 200 content-type: application/json date: Thu, 15 Jul 2021 22:21:09 GMT server: Render
My Dockerfile for this service is as simple as they come:
Thanks in advance.