Comments (3)
where do you figure out the cross origin in microfrontends app1?
Could you help me understand this? What do you mean by "cross origin"?
and where do you config the ’umd‘ type of build package in your demo project app1?
from coexisting-vue-microfrontends.
@joeldenning thanks for your replay. it answers my above two questions.
"cross origin" means that the browser has the "same origin policy" for security. Let take this git repo as an example, "localhost:5000" should not request the "localhost:8081/app" successfully, but it does. Because of the headers 'Access-Control-Allow-Origin': '*'.
I follow this document to run the microfrontends. When I try to add a my local demo as a sub project, the above two questions block me. It will be appreciated that the document cover these potential tips.
from coexisting-vue-microfrontends.
The following code shows how vue-cli-plugin-single-spa sets up CORS for webpack-dev-server, so that it can be downloaded cross origin.
I am closing this issue it doesn't seem like a bug with single-spa. Feel free to reopen or comment further.
from coexisting-vue-microfrontends.
Related Issues (20)
- [QUESTION] Vite version of this O_O
- how to deploy to nginx server, please show detail HOT 1
- Uncaught Error: systemjs-webpack-interop: There is no such module 'app1' in the SystemJS registry. Did you misspell the name of your module? HOT 1
- We're sorry but app1 doesn't work properly without JavaScript enabled. Please enable it to continue. HOT 1
- 请问如果需要通过router的name跳转页面,有没有好的解决方案呢?目前是不是只支持path跳转 HOT 5
- Issues with vue cli v4.x.x still happen HOT 2
- Images from the individual applications doesnt appear HOT 3
- I got the following error after my first clone! HOT 3
- When I don't start the root service, but I start the app1 service HOT 2
- app.js:1 Uncaught navbar: Application 'navbar' died in status LOADING_SOURCE_CODE: Unexpected token '<' HOT 3
- What happens when I add my own project to start?
- When I visited it, I found that it didn't seem to work anymore HOT 2
- codes can not be cloned HOT 1
- why do this in 'root-html-file/index.html' HOT 2
- My current needs need to be able to communicate in various projects and pass data to each other for access. HOT 1
- Question: New Example Repo HOT 2
- vue 3 and vue-router 4 HOT 6
- 跨域了,这么办呢 HOT 2
- what if we use third-party ui library like element-ui,and has to import seperate css file HOT 2
- How to add SSR the proper way to this project? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coexisting-vue-microfrontends.