aymie-oh commited on
Commit
82b4b9b
·
1 Parent(s): 17b1cec

testing render

Browse files
codebookly/src/services/apiClient.ts CHANGED
@@ -1,6 +1,7 @@
1
  import axios from "axios";
2
 
3
- const API_BASE_URL = "http://127.0.0.1:8000";
 
4
 
5
  export const apiClient = axios.create({
6
  baseURL: API_BASE_URL,
 
1
  import axios from "axios";
2
 
3
+ const API_BASE_URL = "https://cdebookly.onrender.com";
4
+ // const API_BASE_URL = import.meta.env.VITE_API_URL ?? "http://127.0.0.1:8000";
5
 
6
  export const apiClient = axios.create({
7
  baseURL: API_BASE_URL,
src/app/app.py CHANGED
@@ -37,13 +37,8 @@ app = FastAPI(
37
 
38
  app.add_middleware(
39
  CORSMiddleware,
40
- allow_origins=[
41
- "http://localhost:5173",
42
- "http://127.0.0.1:5173/",
43
- "http://localhost:3000",
44
- "http://127.0.0.1:3000/",
45
- ],
46
- allow_credentials=True,
47
  allow_methods=["*"],
48
  allow_headers=["*"],
49
  )
 
37
 
38
  app.add_middleware(
39
  CORSMiddleware,
40
+ allow_origins=["*"],
41
+ allow_credentials=False,
 
 
 
 
 
42
  allow_methods=["*"],
43
  allow_headers=["*"],
44
  )