Skip to content

Commit

Permalink
Undo unnecessary change
Browse files Browse the repository at this point in the history
  • Loading branch information
pamella committed Jun 19, 2024
1 parent 0fcd5b4 commit a3365de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { AxiosRequestConfig } from "axios";
export function configAIAssistant(props: OpenAPIConfig): OpenAPIConfig {
function defaultRequestInterceptor(request: AxiosRequestConfig) {
const { csrftoken } = cookie.parse(document.cookie);
if (csrftoken && request.headers) {
if (request.headers && csrftoken) {
request.headers["X-CSRFTOKEN"] = csrftoken;
}
return request;
Expand Down

0 comments on commit a3365de

Please sign in to comment.