Skip to content

use proper initialization NULL for CORS variable, not an empty string#479

Merged
hummeltech merged 1 commit intoopenstreetmap:masterfrom
stoecker:master
Apr 14, 2025
Merged

use proper initialization NULL for CORS variable, not an empty string#479
hummeltech merged 1 commit intoopenstreetmap:masterfrom
stoecker:master

Conversation

@stoecker
Copy link
Contributor

The empty string as initialization for CORS breaks the tile access in case Origin header is sent. Properly initialize it with the correct value NULL. Error was introduced 10 months ago it seems.

@codecov-commenter
Copy link

codecov-commenter commented Apr 14, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 64.73%. Comparing base (c4e3e62) to head (9c91cd6).
Report is 12 commits behind head on master.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff             @@
##           master     #479       +/-   ##
===========================================
- Coverage   81.54%   64.73%   -16.81%     
===========================================
  Files          24       24               
  Lines        5645     4676      -969     
===========================================
- Hits         4603     3027     -1576     
- Misses       1042     1649      +607     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@hummeltech
Copy link
Collaborator

Great find, thanks for the fix!

@hummeltech hummeltech merged commit aae5f2f into openstreetmap:master Apr 14, 2025
31 of 38 checks passed
hummeltech added a commit that referenced this pull request Apr 15, 2025
Also moved `cors = NULL` fix from #479 into `_add_tile_config` instead as that fix only applied to configs added via `AddTileConfig` in `httpd.conf` files, not all methods.
datendelphin pushed a commit to fossgis-routing-server/ansible_openstreetmap.de that referenced this pull request Jan 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants