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:
Rishabh 2021-06-22 12:16:06 +05:30
parent 0535fab865
commit 8d5f5febaa

View File

@ -200,6 +200,9 @@ function startDevServer() {
headers: [{
key: 'Cache-Control',
value: 'no-cache'
},{
key: 'Access-Control-Allow-Origin',
value: '*'
}]
}
]