Merge remote-tracking branch 'upstream/1.8.x' into documents-db-api-for-cloud

This commit is contained in:
ArnabChatterjee20k
2025-12-13 22:41:41 +05:30
155 changed files with 7140 additions and 1991 deletions
@@ -4982,7 +4982,8 @@ class ProjectsConsoleClientTest extends Scope
$this->assertEquals(403, $response['headers']['status-code']);
$this->assertNotEquals($origin, $response['headers']['access-control-allow-origin'] ?? null);
$this->assertEquals('http://localhost', $response['headers']['access-control-allow-origin'] ?? null);
// you should not return a fallback origin for a disallowed host
$this->assertNull($response['headers']['access-control-allow-origin'] ?? null);
/**
@@ -4999,7 +5000,7 @@ class ProjectsConsoleClientTest extends Scope
]);
$this->assertEquals(401, $response['headers']['status-code']);
$this->assertEquals('*', $response['headers']['access-control-allow-origin'] ?? null);
$this->assertEquals($origin, $response['headers']['access-control-allow-origin'] ?? null);
}
/**