Loading react-frontend/my-react-app/package.json +1 −0 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ "name": "app", "version": "0.1.0", "private": true, "proxy": "http://tornado-backend:8888", "homepage": "/aidaho-blog-demo", "dependencies": { "bootstrap": "^5.3.3", Loading react-frontend/my-react-app/src/config.js +4 −4 Original line number Diff line number Diff line const config = { //backendBaseUrl: 'http://localhost/tornado-backend', // For local development //frontendBaseUrl: 'http://localhost', backendBaseUrl: 'https://aidaho-tinkering-club.uni-hohenheim.de/aidaho-blog-demo/tornado-backend', frontendBaseUrl: 'https://aidaho-tinkering-club.uni-hohenheim.de/aidaho-blog-demo', backendBaseUrl: '/tornado-backend', // For local development frontendBaseUrl: 'http://localhost:3000/aidaho-blog-demo', //backendBaseUrl: 'https://aidaho-tinkering-club.uni-hohenheim.de/aidaho-blog-demo/tornado-backend', //frontendBaseUrl: 'https://aidaho-tinkering-club.uni-hohenheim.de/aidaho-blog-demo', }; export default config; tornado-backend/blog.py +1 −1 Original line number Diff line number Diff line Loading @@ -173,7 +173,7 @@ class BaseHandler(tornado.web.RequestHandler): # CORS setup for development def set_default_headers(self): self.set_header("Access-Control-Allow-Origin", "http://localhost") self.set_header("Access-Control-Allow-Origin", "http://localhost:3000") self.set_header("Access-Control-Allow-Headers", "Content-Type, X-Requested-With") self.set_header("Access-Control-Allow-Methods", "GET, POST, OPTIONS") self.set_header("Access-Control-Allow-Credentials", "true") Loading Loading
react-frontend/my-react-app/package.json +1 −0 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ "name": "app", "version": "0.1.0", "private": true, "proxy": "http://tornado-backend:8888", "homepage": "/aidaho-blog-demo", "dependencies": { "bootstrap": "^5.3.3", Loading
react-frontend/my-react-app/src/config.js +4 −4 Original line number Diff line number Diff line const config = { //backendBaseUrl: 'http://localhost/tornado-backend', // For local development //frontendBaseUrl: 'http://localhost', backendBaseUrl: 'https://aidaho-tinkering-club.uni-hohenheim.de/aidaho-blog-demo/tornado-backend', frontendBaseUrl: 'https://aidaho-tinkering-club.uni-hohenheim.de/aidaho-blog-demo', backendBaseUrl: '/tornado-backend', // For local development frontendBaseUrl: 'http://localhost:3000/aidaho-blog-demo', //backendBaseUrl: 'https://aidaho-tinkering-club.uni-hohenheim.de/aidaho-blog-demo/tornado-backend', //frontendBaseUrl: 'https://aidaho-tinkering-club.uni-hohenheim.de/aidaho-blog-demo', }; export default config;
tornado-backend/blog.py +1 −1 Original line number Diff line number Diff line Loading @@ -173,7 +173,7 @@ class BaseHandler(tornado.web.RequestHandler): # CORS setup for development def set_default_headers(self): self.set_header("Access-Control-Allow-Origin", "http://localhost") self.set_header("Access-Control-Allow-Origin", "http://localhost:3000") self.set_header("Access-Control-Allow-Headers", "Content-Type, X-Requested-With") self.set_header("Access-Control-Allow-Methods", "GET, POST, OPTIONS") self.set_header("Access-Control-Allow-Credentials", "true") Loading