diff --git a/core/modules/system/src/Tests/HttpKernel/CorsIntegrationTest.php b/core/modules/system/src/Tests/HttpKernel/CorsIntegrationTest.php index d201998..2b500a7 100755 --- a/core/modules/system/src/Tests/HttpKernel/CorsIntegrationTest.php +++ b/core/modules/system/src/Tests/HttpKernel/CorsIntegrationTest.php @@ -25,14 +25,14 @@ class CorsIntegrationTest extends WebTestBase { public function testCrossSiteRequest() { // Test default parameters. $cors_config = $this->container->getParameter('cors.config'); - $this->assertFalse($cors_config['enabled']); - $this->assertEqual([], $cors_config['allowedHeaders']); - $this->assertEqual([], $cors_config['allowedMethods']); - $this->assertEqual(['*'], $cors_config['allowedOrigins']); - - $this->assertEqual(FALSE, $cors_config['allowedHeaders']); - $this->assertEqual(FALSE, $cors_config['allowedMethods']); - $this->assertEqual(FALSE, $cors_config['supportsCredentials']); + $this->assertIdentical(FALSE, $cors_config['enabled']); + $this->assertIdentical([], $cors_config['allowedHeaders']); + $this->assertIdentical([], $cors_config['allowedMethods']); + $this->assertIdentical(['*'], $cors_config['allowedOrigins']); + + $this->assertIdentical(FALSE, $cors_config['exposedHeaders']); + $this->assertIdentical(FALSE, $cors_config['maxAge']); + $this->assertIdentical(FALSE, $cors_config['supportsCredentials']); // Configure the CORS stack to allow a specific set of origins, but don't // specify an origin header. diff --git a/sites/default/default.services.yml b/sites/default/default.services.yml index 904c591..d13c99c 100644 --- a/sites/default/default.services.yml +++ b/sites/default/default.services.yml @@ -52,7 +52,7 @@ parameters: # @default keyvalue.database.expirable # default: keyvalue.database.expirable - # Allow to configure Cross-Site HTTP requests (CORS). + # Configure Cross-Site HTTP requests (CORS). # Read https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS # for more information about the topic in general. # Note: By default the configuration is disabled.