openfoodfacts / search-a-licious

🍊🔎 A pluggable search service for large collections of objects (like Open Food Facts)
https://search.openfoodfacts.org
GNU Affero General Public License v3.0
6 stars 4 forks source link

Change CORS headers to allow JS queries #80

Closed dq18 closed 1 month ago

dq18 commented 5 months ago

Open-prices will soon have to query this API. Either allow origin for prices.openfoodfacts.[org, net] or allow_header=["*"]

alexfauquette commented 2 months ago

Upvoted this issue. The implementation is ready, but even from hunger.openfoodfacts.org it returns a CORS

https://hunger.openfoodfacts.org/logos/search?type=brand

alexgarel commented 2 months ago

I think we can go for allow_header=["*"] as it's intended for public use.