akrem.yes
11/14/2023, 8:02 AMrp_st
11/14/2023, 8:12 AMakrem.yes
11/14/2023, 10:21 AMakrem.yes
11/15/2023, 12:08 AMakrem.yes
11/15/2023, 12:09 AMakrem.yes
11/15/2023, 12:10 AMakrem.yes
11/15/2023, 12:10 AMakrem.yes
11/15/2023, 12:11 AMakrem.yes
11/15/2023, 12:11 AMakrem.yes
11/15/2023, 12:13 AMakrem.yes
11/15/2023, 12:13 AMfrom agenta_backend.routers import (
health_router,
)
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
origins = [
"http://localhost:3000",
]
print("are we even here?")
app = FastAPI()
allow_headers = ["Content-Type"]
app.add_middleware(
CORSMiddleware,
allow_origins=["http://localhost:3000"],
allow_credentials=True,
allow_methods=["*"],
allow_headers=['Content-Type', 'anti-csrf', 'authorization', 'st-auth-mode', 'rid', 'fdi-version'],
)
app.include_router(health_router.router, prefix="/health")
akrem.yes
11/15/2023, 5:48 AMrp_st
11/15/2023, 6:41 AMakrem.yes
11/15/2023, 7:28 AMINFO: Started server process [7]
INFO: Waiting for application startup.
INFO: Application startup complete.
are we even here???????
are we even here???????
are we even here?
INFO: 192.168.65.1:30408 - "OPTIONS /api/auth/session/refresh HTTP/1.1" 400 Bad Request
INFO: 192.168.65.1:30408 - "OPTIONS /api/auth/session/refresh HTTP/1.1" 400 Bad Request
INFO: 192.168.65.1:30443 - "OPTIONS /api/auth/session/refresh HTTP/1.1" 400 Bad Request
INFO: 192.168.65.1:30444 - "OPTIONS /api/auth/session/refresh HTTP/1.1" 400 Bad Request
rp_st
11/15/2023, 7:29 AMakrem.yes
11/15/2023, 7:30 AMrp_st
11/15/2023, 7:31 AMrp_st
11/15/2023, 7:32 AMakrem.yes
11/15/2023, 7:32 AMfrom supertokens_python import get_all_cors_headers
from agenta_backend.routers import (
health_router,
)
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from supertokens_python.framework.fastapi import get_middleware
origins = [
"http://localhost:3000",
]
print("are we even here?")
app = FastAPI()
app.add_middleware(get_middleware())
allow_headers = ["Content-Type"]
app.add_middleware(
CORSMiddleware,
allow_origins=["http://localhost:3000"],
allow_credentials=True,
allow_methods=["GET", "PUT", "POST", "DELETE", "OPTIONS", "PATCH"],
allow_headers=["Content-Type"] + get_all_cors_headers(),
)
app.include_router(health_router.router, prefix="/health")
rp_st
11/15/2023, 7:32 AMrp_st
11/15/2023, 7:33 AMakrem.yes
11/15/2023, 7:39 AMrp_st
11/15/2023, 7:39 AMakrem.yes
11/15/2023, 7:40 AMfrom supertokens_python import get_all_cors_headers
from agenta_backend.routers import (
health_router,
)
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from supertokens_python.framework.fastapi import get_middleware
origins = [
"http://localhost:3000",
]
print("are we even here?")
app = FastAPI()
allow_headers = ["Content-Type"]
app.add_middleware(
CORSMiddleware,
allow_origins=["http://localhost:3000"],
allow_credentials=True,
allow_methods=["GET", "PUT", "POST", "DELETE", "OPTIONS", "PATCH"],
allow_headers=["Content-Type"] + get_all_cors_headers(),
)
app.add_middleware(get_middleware())
app.include_router(health_router.router, prefix="/health")
akrem.yes
11/15/2023, 7:40 AMrp_st
11/15/2023, 7:40 AMrp_st
11/15/2023, 7:40 AMakrem.yes
11/16/2023, 2:03 PMrp_st
11/17/2023, 5:52 AM