mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-28 13:47:57 +03:00
Add missing overrides.
This commit is contained in:
parent
82800241aa
commit
e477632f0d
1 changed files with 19 additions and 0 deletions
19
js/psfplayer_browser/config-overrides.js
Normal file
19
js/psfplayer_browser/config-overrides.js
Normal file
|
@ -0,0 +1,19 @@
|
|||
module.exports = {
|
||||
// Extend/override the dev server configuration used by CRA
|
||||
// See: https://github.com/timarney/react-app-rewired#extended-configuration-options
|
||||
devServer: function(configFunction) {
|
||||
return function(proxy, allowedHost) {
|
||||
// Create the default config by calling configFunction with the proxy/allowedHost parameters
|
||||
// Default config: https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/config/webpackDevServer.config.js
|
||||
const config = configFunction(proxy, allowedHost);
|
||||
|
||||
config.headers = {
|
||||
'Cross-Origin-Embedder-Policy': 'require-corp',
|
||||
'Cross-Origin-Opener-Policy': 'same-origin'
|
||||
}
|
||||
|
||||
return config;
|
||||
};
|
||||
},
|
||||
};
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue