Created
January 10, 2019 08:18
-
-
Save rifttech/6504526eb7b1975ee8ac334b4724ecf4 to your computer and use it in GitHub Desktop.
vue cli 3+, cors, devserver, sockjs error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // vue.config.js | |
| module.exports = { | |
| // options... | |
| devServer: { | |
| host: 'localhost', | |
| port: 8080, | |
| headers: { | |
| 'Access-Control-Allow-Origin': '*', | |
| 'Access-Control-Allow-Headers': 'Origin, X-Requested-With, Content-Type, Accept' | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment