mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
fix: preserve cors max age type
This commit is contained in:
parent
77b4f8b7a0
commit
eb366cf94b
1 changed files with 2 additions and 2 deletions
|
|
@ -48,7 +48,7 @@ final class Cors
|
|||
/**
|
||||
* Build CORS headers for a given request origin.
|
||||
*
|
||||
* @return array<string,string>
|
||||
* @return array<string, int|string>
|
||||
*/
|
||||
public function headers(string $origin): array
|
||||
{
|
||||
|
|
@ -57,7 +57,7 @@ final class Cors
|
|||
self::HEADER_ALLOW_HEADERS => implode(', ', $this->allowedHeaders),
|
||||
self::HEADER_EXPOSE_HEADERS => implode(', ', $this->exposedHeaders),
|
||||
self::HEADER_ALLOW_CREDENTIALS => $this->allowCredentials ? 'true' : 'false',
|
||||
self::HEADER_MAX_AGE => (string) $this->maxAge,
|
||||
self::HEADER_MAX_AGE => $this->maxAge,
|
||||
];
|
||||
|
||||
// Wildcard allow-all
|
||||
|
|
|
|||
Loading…
Reference in a new issue