erlloyd / cardtable

A browser-only project to play a few card games with friends
14 stars 4 forks source link

CORS error on search when running cardtable locally #124

Open papaschloss opened 4 months ago

papaschloss commented 4 months ago

I've been trying to run this locally but hit a snag with the deck searching. My local version is hitting your scraper (url below) and getting a CORS error -- which is fine. I'm happy to run my own proxy, but the URL to it is hard coded. Can you make it a little easier to override this? An env variable override would work great. Thanks!

CORS blocked URL: https://cardtable-scrape-decks.middle-earth.house/?uri=https%3A%2F%2Fmarvelcdb.com%2Fdecklists%3Fname%3Dshe%26sort%3Dlikes

that domain is referenced in src/constants/api-constants.ts