Skip to content

Commit

Permalink
Merge pull request #4307 from GeotrekCE/fix_cors_error_on_bad_report_…
Browse files Browse the repository at this point in the history
…email

🐛 [BUG] Change default CORS configuration to 'always'
  • Loading branch information
Chatewgne authored Sep 19, 2024
2 parents 3192f6e + 99bd87d commit bc8ee4b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion conf/nginx.conf.in
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ server {
location ~ ^/api {
proxy_pass http://api_server;
proxy_read_timeout ${TIMEOUT}s;
add_header Access-Control-Allow-Origin ${DOLLAR}allow_origin;
add_header Access-Control-Allow-Origin ${DOLLAR}allow_origin always;
}

proxy_pass http://ui_server;
Expand Down
2 changes: 2 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ CHANGELOG
- ApidaeTrekParser now handles missing source website
- Fix Aggregator does not retrieve unpublished Tour Steps (#3569)"
- Fix missing Annotation Categories in APIv2 for annotations other than Points (#4032)"
- Change default CORS configuration to 'always' : see https://github.com/GeotrekCE/Geotrek-rando-v3/issues/1257


**Documentation**

Expand Down

0 comments on commit bc8ee4b

Please sign in to comment.