Skip to content

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions