Skip to content

Commit 08dbfbf

Browse files
committed
allow only frontend to call backend server
1 parent eab276f commit 08dbfbf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/backend/app_kernel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
connection_string = os.getenv("APPLICATIONINSIGHTS_CONNECTION_STRING")
3939
if connection_string:
4040
# Configure Application Insights if the Instrumentation Key is found
41-
#configure_azure_monitor(connection_string=connection_string)
41+
# configure_azure_monitor(connection_string=connection_string)
4242
logging.info(
4343
"Application Insights configured with the provided Instrumentation Key"
4444
)
@@ -70,7 +70,7 @@
7070
# Add this near the top of your app.py, after initializing the app
7171
app.add_middleware(
7272
CORSMiddleware,
73-
allow_origins=["*"], # Add your frontend server URL
73+
allow_origins=[frontend_url],
7474
allow_credentials=True,
7575
allow_methods=["*"],
7676
allow_headers=["*"],

src/backend/kernel_agents/planner_agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ async def handle_input_task(self, input_task: InputTask) -> str:
197197
session_id=input_task.session_id,
198198
user_id=self._user_id,
199199
plan_id=plan.id,
200-
content=f"Generated a plan with {len(steps)} steps. Click the check box beside each step to complete it, click the x to reject this step.",
200+
content=f"Generated a plan with {len(steps)} steps. Click the checkmark beside each step to complete it, click the x to reject this step.",
201201
source=AgentType.PLANNER.value,
202202
step_id="",
203203
)
@@ -209,7 +209,7 @@ async def handle_input_task(self, input_task: InputTask) -> str:
209209
"session_id": input_task.session_id,
210210
"user_id": self._user_id,
211211
"plan_id": plan.id,
212-
"content": f"Generated a plan with {len(steps)} steps. Click the check box beside each step to complete it, click the x to reject this step.",
212+
"content": f"Generated a plan with {len(steps)} steps. Click the checkmark beside each step to complete it, click the x to reject this step.",
213213
"source": AgentType.PLANNER.value,
214214
},
215215
)

0 commit comments

Comments
 (0)