-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
type: bugSomething isn't workingSomething isn't working
Description
Bug description
Hi, I can not run my Vue.js v3 app. It said :
Mixed Content: The page at 'https://8080-kevinadhiguna-jiyu-tyali2phkgh.ws-us51.gitpod.io/' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://10.0.5.2:8080/ws'. This request has been blocked; this endpoint must be available over WSS.
Steps to reproduce
- Open Gitpod workspace
- Open a terminal inside the workspace
- Install @vue/cli globally using npm :
npm install -g @vue/cli
- Create a Vue.js app (v3.2.13) :
vue create modal-project-vue3
- Navigate to the directory
- Add
allowedhosts: 'all'
tovue.config.js
(otherwise it showed meInvalid Hosts
error) :
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
...
// options
devServer: {
allowedHosts: 'all',
},
...
})
- Run the app :
yarn serve
- Open a preview in a new tab.
- It showed me nothing, so I looked at the console and saw the error.
Workspace affected
kevinadhiguna-jiyu-tyali2phkgh.ws-us51
Expected behavior
A Vue.js app display (I ran the project in localhost) :
Example repository
The repository is here : https://github.com/kevinadhiguna/jiyu/tree/master/modal-project-vue3
Anything else?
Any help is much appreciated.
nvmnghia
Metadata
Metadata
Assignees
Labels
type: bugSomething isn't workingSomething isn't working
Type
Projects
Status
Done