-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathpwa-configuration.php
28 lines (27 loc) · 1.18 KB
/
pwa-configuration.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
return [
'system' => [
'default' => [
'web' => [
'graphql' => [
'cors_max_age' => 86400,
'cors_allow_credentials' => 1,
'cors_allowed_methods' => 'POST, OPTIONS, GET',
'cors_expose_headers' => 'X-Magento-Cache-Id',
'cors_allowed_headers' =>
'Content-Currency, Store, X-Magento-Cache-Id, X-Captcha, Content-Type, Authorization, DNT, TE',
// Angular
'cors_allowed_origins' =>
'http://localhost:4200, https://localhost:4200',
// Angular + Universal
'cors_allowed_origins' =>
'http://localhost:4200, https://localhost:4200, http://localhost:4000, https://localhost:4000',
// Express
'cors_allowed_origins' =>
'https://frontend.example.com, http://localhost:3000, https://localhost:3000',
// PWA Studio (PWA Studio Generates a random port, so we can't provide a configuration)
]
]
]
]
];