Breaking change in patch version breaks Module Federation cross-origin development (semver violation)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- javascript
Research direction
Reproduce the two-app setup with the host at localhost:8000 and the exposed app at localhost:8001, then inspect commit df073c5 and its Cross-Origin-Resource-Policy change. Verify the behavior around loading remoteEntry.js and define done as restoring or clearly addressing this cross-origin development setup without the reported silent failure.
Written by the indexing model from the issue text.
Description
Setup:
Module Federation development pattern:
- Host app on localhost:8000
- Exposed app on localhost:8001
Error:
Error: [ Federation Runtime ]: Failed to load script resources. #RUNTIME-008
at http://localhost:8000/ trying to load http://localhost:8001/remoteEntry.js
Problem:
A breaking change was added in https://github.com/webpack/webpack-dev-server/commit/df073c5
(Cross-Origin-Resource-Policy: same-origin header) in a patch version.
This common, working development setup now silently fails unless Access-Control-Allow-Origin header is explicitly added.
- Before patch: worked without CORS configuration
- After patch: breaks silently
- Dominant language
- JavaScript
- Stars
- 7.9k
- Forks
- 1.5k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 8
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from webpack/webpack-dev-server
-
Add support for Chrome DevTools WorkspacesMay be free again @AnumanyaJaiswal claimed this 35 days ago, and no pull request is open. Open
Difficulty 4/5 3-5 days Newbie friendliness 45/100
webpack/webpack-dev-server#5716 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
CORS localhost requests are considered invalid host and get blockedMay be free again @Jeston10 claimed this 310 days ago, and no pull request is open. Open
Difficulty 3/5 1-2 days Newbie friendliness 52/100
webpack/webpack-dev-server#5603 · 5 comments ·
Maintainers usually reply within 1 day
-
Webpack dev server URL should be displayed more prominentlyPossibly taken @snitin315 claimed this 805 days ago. Open
webpack/webpack-dev-server#4907 · 7 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
webpack/webpack-dev-server#4540 · 9 comments ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
webpack/webpack-dev-server#4378 · 29 comments · 3 reactions ·
Maintainers usually reply within 1 day
All issues in webpack/webpack-dev-server
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
babalae/bettergi-scripts-list#3905 · 1 comment ·
Maintainers usually reply within 1 day
-
[Bug] "Configure Colota" opens Colota with "Invalid configuration: No configuration data in URL"Open
Difficulty 1/5 1-3 hours Newbie friendliness 87/100
dedicatedcode/reitti#1445 ·
Maintainers usually reply within 1 day
-
New tool: Uncle DeskPossibly taken @github-actions claimed this today. Opensubmission triage
Difficulty 1/5 Under an hour Newbie friendliness 85/100
kausalflow/tools#384 · 1 comment ·
Maintainers usually reply within 1 day
-
good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
-
area: css
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day