Skip to content

CORS issues with 1.12.9 #335

@jedwards1211

Description

@jedwards1211

Some random npm command upgraded webpack-dev-server to 1.12.9 without my knowledge. I then had numerous insurmountable CORS errors when using it together with Meteor.

Using Access-Control-Allow-Origin: '*' doesn't work because abstract-xhr.js (within sockjs-client) sets withCredentials on the XMLHttpRequest. I assume something in webpack-dev-server's dependencies has changed? Downgrading to 1.12.1 fixed the CORS issues for me.

abstract-xhr.js accepts a noCredentials option when creating the request. Perhaps there is a way webpack-dev-server can pass this option?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions