From f145215b8fc595195c3fd3c2b618cac1c8aa3de2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Odini?= Date: Wed, 13 Nov 2024 17:35:46 +0100 Subject: [PATCH 1/2] chore: add CORS headers to data (#564) --- nginx.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nginx.conf b/nginx.conf index c4bcd633..319ecdea 100644 --- a/nginx.conf +++ b/nginx.conf @@ -90,6 +90,12 @@ http { location /data { alias /var/data-dump; + + # Add CORS headers + add_header 'Access-Control-Allow-Origin' '*'; + add_header 'Access-Control-Allow-Methods' 'GET, OPTIONS'; + add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range'; + add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range'; } } } From 762943c6d1da35e58dd4a736a85fbdbb0be370ec Mon Sep 17 00:00:00 2001 From: Open Food Facts Bot <119524357+openfoodfacts-bot@users.noreply.github.com> Date: Wed, 13 Nov 2024 18:15:16 +0100 Subject: [PATCH 2/2] chore(main): release 1.48.0 (#563) --- CHANGELOG.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a3aa778..8d388b24 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## [1.48.0](https://github.com/openfoodfacts/open-prices/compare/v1.47.1...v1.48.0) (2024-11-13) + + +### Features + +* allow users to submit origin tags in their language ([#561](https://github.com/openfoodfacts/open-prices/issues/561)) ([2b867db](https://github.com/openfoodfacts/open-prices/commit/2b867dbdf78f49298cf339e981bd5bb8fcdc2378)) +* **proofs:** New endpoint to extract price data from images (with Gemini) ([#557](https://github.com/openfoodfacts/open-prices/issues/557)) ([fa54a36](https://github.com/openfoodfacts/open-prices/commit/fa54a36f4276efc9b4539dd37b670e9a18a0b02d)) + + +### Technical + +* add CORS headers to data ([#564](https://github.com/openfoodfacts/open-prices/issues/564)) ([f145215](https://github.com/openfoodfacts/open-prices/commit/f145215b8fc595195c3fd3c2b618cac1c8aa3de2)) + ## [1.47.1](https://github.com/openfoodfacts/open-prices/compare/v1.47.0...v1.47.1) (2024-11-09)