mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
Added access control headers in dev mode
no refs - adds `access-control-allow-origin: *` headers for dev mode - portal script will be loaded with `cross-origin=anonymous`, access control header is needed to allow script to load - mimics unpkg which already adds `access-control-allow-origin: *`
This commit is contained in:
parent
0535fab865
commit
8d5f5febaa
@ -200,6 +200,9 @@ function startDevServer() {
|
||||
headers: [{
|
||||
key: 'Cache-Control',
|
||||
value: 'no-cache'
|
||||
},{
|
||||
key: 'Access-Control-Allow-Origin',
|
||||
value: '*'
|
||||
}]
|
||||
}
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user