Skip to content

Commit fb20174

Browse files
committed
Allow Fetching from localhost:4200 in Development
1 parent 6e6eb32 commit fb20174

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

webpack.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@ module.exports = (env) => {
109109

110110
if (mode === 'development') {
111111
processed.host_permissions.push('http://localhost:8080/*');
112+
113+
const versionResource = processed.web_accessible_resources.find((e) =>
114+
e.resources[0].includes('version.txt')
115+
);
116+
versionResource.matches.push('http://localhost:4200/*');
112117
}
113118

114119
if (env.browser === 'firefox') {

0 commit comments

Comments
 (0)