Skip to content

Breaking change in patch version breaks Module Federation cross-origin development (semver violation) #5679

Open

Description

@vitaliypogoretskyy-art

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 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

Activity

  1. alexander-akait commented on Jun 9, 2026

    @alexander-akait
    Member

    It is a security patch, otherwise you can have a problem, please fill the issue template and describe your problem

  2. changed the title [-]Specify the change about adding CORS same-origin as breaking change, because it breakes the app when you were not passing the CORS header in the config[/-] [+]Breaking change in patch version breaks Module Federation cross-origin development (semver violation)[/+] on Jun 9, 2026
  3. vitaliypogoretskyy-art commented on Jun 9, 2026

    @vitaliypogoretskyy-art
    Author

    It is a security patch, otherwise you can have a problem, please fill the issue template and describe your problem

    webpack-dev-server is a dev dependency, so this security patch
    only affects developers during local development, not production
    apps or end users, right?

    Silently breaking working setups in a patch version violates
    semver expectations, regardless of the security reasoning.

  4. alexander-akait commented on Jun 9, 2026

    @alexander-akait
    Member

    This is a security patch, no matter is it a dev dependency or production, if you expose your application at your network you can be attacked, please provide your configuration and structure, you can use github to create a small reproducible test repo, I feel like you have wrong configurations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions