-
Notifications
You must be signed in to change notification settings - Fork 20
feat: Implement comprehensive security headers service…) #1260
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
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Robot Framework reports |
- Add git safe directory config to Dockerfile - Add vendor dependency installation check in entrypoint - Handle dev/prod environment differences for composer install
- Move allowed origins configuration to SecurityHeaders - Add applyCorsHeaders method for basic CORS support - Add applyCorsCredentialsHeaders method for authenticated requests - Centralize CORS logic for better maintainability
- Add applySecurityWithCors helper function - Remove duplicate CORS logic in favor of SecurityHeaders service - Fix invalid '*' pattern to 'GET|HEAD|POST|PUT|OPTIONS /*' - Improve code organization with logical grouping - Add descriptive comments for middleware sections
- Add 'unsafe-hashes' to script-src for jQuery event handlers - Add script-src-attr 'unsafe-hashes' for inline event handlers - Include crowdin-static.cf-downloads.crowdin.com for avatar images - Allow Crowdin blob workers and child sources for inline translation - Fixes CSP blocking of Crowdin functionality in inline-translation mode
0a2a312 to
3fd2f74
Compare
- Remove Base parameter dependencies from SecurityHeaders methods - Ensure worker-src allows Crowdin blob workers in inline translation mode - Maintain compatibility with existing CSP structure
- Replace individual check commands with pre-commit integration - Add PHP_CS_FIXER_IGNORE_ENV to handle PHP 8.4 compatibility - Create unified test target for easier CI/CD integration - Maintain backward compatibility with existing targets
- Combine git config and composer install commands into single RUN instruction - Resolves hadolint DL3059 linting warning about consecutive RUN commands - Reduces Docker image layers for better build efficiency
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.