Skip to content

Commit

Permalink
sec(connectors): BI-0 forbid redirects in bitrix connector (#691)
Browse files Browse the repository at this point in the history
  • Loading branch information
KonstantAnxiety authored and juliarbkv committed Nov 22, 2024
1 parent ddea549 commit 0f7d259
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ async def _run_query(self, dba_query: DBAdapterQuery) -> Any:
url=api_url,
params=request_params,
json=payload.json_body,
allow_redirects=False,
)

if resp.status != 200:
Expand Down Expand Up @@ -301,6 +302,7 @@ async def _get_user_tables(self, schema_ident: SchemaIdent) -> list[str]:
resp = await self._session.post(
url=api_url,
json=body,
allow_redirects=False,
)

if resp.status != 200:
Expand Down

0 comments on commit 0f7d259

Please sign in to comment.