Commit 2fa2347f authored by Markus Mößler's avatar Markus Mößler
Browse files

corrected proxy config for local development

parent 1d07e183
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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",
+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;
+1 −1
Original line number Diff line number Diff line
@@ -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")