n6g7/httpdf

CORS issues

Closed this issue · 1 comments

Hi,

This is a fantastic microservice. I have been trying to setup my own docker but am having issues with CORS. Things I have attempt:

  1. Add cors npm package and follow setup process
    -I would have thought this would solve any issues, but Im not sure if there is something odd happening during the indexing process that creates the routes.

  2. Using Moseif CORS extension on chrome, this works but I cant ask people to download it =)

Any tips to get rid of "has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled."?

I was able to figure it out, my local docker image with cors added was not actually being pushed. This is not an issue.