Skip to content
Snippets Groups Projects
Commit 0d6cd441 authored by Ted Bowman's avatar Ted Bowman
Browse files

Contrib: allow any version of core in build tests to allow gitlab core clone...

Contrib: allow any version of core in build tests to allow gitlab core clone tests - project/automatic_updates@7a8446a8
parent a48fa3fc
No related branches found
No related tags found
1 merge request!5976Contrib: Issue #3411241: Expand ConverterCommand documentation to make it...
This commit is part of merge request !5976. Comments created here will be created in the context of that merge request.
...@@ -123,8 +123,10 @@ public function onRespond(ResponseEvent $event) { ...@@ -123,8 +123,10 @@ public function onRespond(ResponseEvent $event) {
// different from the declared content-type, since that can lead to // different from the declared content-type, since that can lead to
// XSS and other vulnerabilities. // XSS and other vulnerabilities.
// https://owasp.org/www-project-secure-headers // https://owasp.org/www-project-secure-headers
$response->headers->set('X-Content-Type-Options', 'nosniff', FALSE); $response->headers->set('X-Content-Type-Options', 'nosniff');
$response->headers->set('X-Frame-Options', 'SAMEORIGIN', FALSE); if (!$response->headers->has('X-Frame-Options')) {
$response->headers->set('X-Frame-Options', 'SAMEORIGIN');
}
// If the current response isn't an implementation of the // If the current response isn't an implementation of the
// CacheableResponseInterface, we assume that a Response is either // CacheableResponseInterface, we assume that a Response is either
......
...@@ -30,9 +30,12 @@ class ComposerProjectTemplatesTest extends ComposerBuildTestBase { ...@@ -30,9 +30,12 @@ class ComposerProjectTemplatesTest extends ComposerBuildTestBase {
/** /**
* The minimum stability requirement for dependencies. * The minimum stability requirement for dependencies.
* *
* @todo Temporarily changing to 'beta' to allow php-tuf/composer-stager
* dependency. This will be done in https://drupal.org/i/3331078.
*
* @see https://getcomposer.org/doc/04-schema.md#minimum-stability * @see https://getcomposer.org/doc/04-schema.md#minimum-stability
*/ */
protected const MINIMUM_STABILITY = 'stable'; protected const MINIMUM_STABILITY = 'beta';
/** /**
* The order of stability strings from least stable to most stable. * The order of stability strings from least stable to most stable.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment