Skip to content

Explicitly specify localhost as an allowed host, and add WSLIP IP in WSLEnvironments. - #5134

Merged
bjester merged 1 commit into
learningequality:unstablefrom
rtibbles:hospitable
Jun 25, 2025
Merged

Explicitly specify localhost as an allowed host, and add WSLIP IP in WSLEnvironments.#5134
bjester merged 1 commit into
learningequality:unstablefrom
rtibbles:hospitable

Conversation

@rtibbles

Copy link
Copy Markdown
Member

Summary

  • Fixes issue where the default allowedHosts is too strict in webpack dev server
  • Adds explicit access via the WSL IP address

Comment threadwebpack.config.js
'Access-Control-Allow-Origin': '*',
},
allowedHosts: [
'localhost',

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I looked at the source, and localhost is explicitly allowed, but I have no problem with being explicit here

@bjester
bjester merged commit 13d5903 into learningequality:unstableJun 25, 2025
@bjesterbjester mentioned this pull request Aug 14, 2025
@bjesterbjester mentioned this pull request Aug 22, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@rtibbles@bjester