in frontend/src/components/Home.vue http://localhost:5000/api/random and run.py @app.route('/api/random') the route looks like can not run report a bug :
Access to XMLHttpRequest at 'http://localhost:5000/api/random' from origin 'http://localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
i modify it http://localhost:5000/api/random/ and @app.route('/api/random/') this be ok
in frontend/src/components/Home.vue
http://localhost:5000/api/randomand run.py @app.route('/api/random') the route looks like can not run report a bug :Access to XMLHttpRequest at 'http://localhost:5000/api/random' from origin 'http://localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
i modify it
http://localhost:5000/api/random/and @app.route('/api/random/') this be ok