Skip to content

Commit bbb6774

Browse files
UPDATE cdn test
1 parent 16fd809 commit bbb6774

File tree

1 file changed

+12
-17
lines changed

1 file changed

+12
-17
lines changed

src/CloudfrontCookies.php

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -49,22 +49,17 @@ public function queue(): void
4949

5050
private function getPolicy(): string
5151
{
52-
$resourceKey = Config::getResourceKey();
53-
$expires = Config::getExpires();
54-
55-
return '{"Statement":[{"Resource":"'.$resourceKey.'","Condition":{"DateLessThan":{"AWS:EpochTime":'.$expires.'}}}]}';
56-
57-
// return json_encode([
58-
// 'Statement' => [
59-
// [
60-
// 'Resource' => Config::getResourceKey(),
61-
// 'Condition' => [
62-
// 'DateLessThan' => [
63-
// 'AWS:EpochTime' => Config::getExpires(),
64-
// ],
65-
// ],
66-
// ],
67-
// ],
68-
// ]);
52+
return json_encode([
53+
'Statement' => [
54+
[
55+
'Resource' => Config::getResourceKey(),
56+
'Condition' => [
57+
'DateLessThan' => [
58+
'AWS:EpochTime' => Config::getExpires(),
59+
],
60+
],
61+
],
62+
],
63+
]);
6964
}
7065
}

0 commit comments

Comments
 (0)