-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Vue.js (v3) mixed content error #11170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hey @kevinadhiguna, can you try opening your workspace on Desktop VSCode? |
Sure I can. I did and it worked normally but why did you recommend to open in Desktop VSCode ? Is there any difference ? |
It uses SSH and SSH port forwarding to your So, let me reiterate: there are two things you can do to workaround this until #459 is resolved, right now you might be accessing via the gitpod.io mapped URLs for your ports, which doesn't work by default for some configurations. You can:
So, ideally, things should work the same way on gitpod as they would on your local machine this way. |
Thank you @axonasif , but what if I already have an image in
How do I add |
You configure it in the |
@kevinadhiguna You can try with code below, it works well in your repo for me. Check doc here https://webpack.js.org/configuration/dev-server/#websocketurl
Feel free to reopen it if it not works for you. diff --git a/modal-project-vue3/vue.config.js b/modal-project-vue3/vue.config.js
index 6ed010a..39181c1 100644
--- a/modal-project-vue3/vue.config.js
+++ b/modal-project-vue3/vue.config.js
@@ -1,4 +1,10 @@
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
transpileDependencies: true,
+ devServer: {
+ allowedHosts: 'all',
+ client: {
+ webSocketURL: 'auto://0.0.0.0:0/ws'
+ }
+ },
}); |
Much Appreciated @mustard-mh , that worked well. However, does that configuration create a security issue ? |
@kevinadhiguna No, others can visit the port you opened only once you make that port
|
Bug description
Hi, I can not run my Vue.js v3 app. It said :
Steps to reproduce
npm install -g @vue/cli
vue create modal-project-vue3
allowedhosts: 'all'
tovue.config.js
(otherwise it showed meInvalid Hosts
error) :yarn serve
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.
The text was updated successfully, but these errors were encountered: