Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Cors headers not set when cache was not enabled #925

Merged
merged 2 commits into from
Dec 16, 2024

Conversation

mcop1
Copy link
Contributor

@mcop1 mcop1 commented Dec 16, 2024

Resolves #923
Follow up to #896

Decoupled adding/removing cors header from output cache to use both services independently.

@mcop1 mcop1 added the Bug label Dec 16, 2024
@mcop1 mcop1 added this to the 1.9.1 milestone Dec 16, 2024
@mcop1 mcop1 self-assigned this Dec 16, 2024
Copy link

sonarqubecloud bot commented Dec 16, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
3 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

@mcop1 mcop1 marked this pull request as ready for review December 16, 2024 11:01
@mcop1
Copy link
Contributor Author

mcop1 commented Dec 16, 2024

Hello @klickparkdominik ,

would you mind having a quick look at the changes in the pr? Would be really appreciated.

@klickparkdominik
Copy link

klickparkdominik commented Dec 16, 2024

Hi @mcop1 ,

wow, that was quick.

I am not familiar with the code of data-hub in general. But I applied your commits from this PR to my environment (APP_ENV=dev) and cleared pimcore cache afterwards. With this fix applied I get no CORS error anymore in both cases, with output_cache_enabled enabled and disabled. And the changes make sense by reading them.

LGTM 👍

@mcop1
Copy link
Contributor Author

mcop1 commented Dec 16, 2024

Thank you for having another look, again I really appreciate your help 💯

@mcop1 mcop1 changed the base branch from 1.x to 1.9_LTS December 16, 2024 11:52
@mcop1 mcop1 merged commit 2c120fd into 1.9_LTS Dec 16, 2024
1 check passed
@mcop1 mcop1 deleted the 923-bug-access-blocked-by-cors-missing-headers branch December 16, 2024 11:52
@github-actions github-actions bot locked and limited conversation to collaborators Dec 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Access blocked by CORS / missing headers
2 participants