Skip to content

Commit

Permalink
Merge pull request #455 from zendesk/luis.use_public_sessions_endpoint
Browse files Browse the repository at this point in the history
Use the public sessions endpoint URL instead of the internal one
  • Loading branch information
luis-almeida authored Dec 11, 2023
2 parents 9c89004 + 95d5139 commit 9446ef1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/new-request-form.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/modules/new-request-form/fetchCsrfToken.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// NOTE: This is a temporary handling of the CSRF token
export async function fetchCsrfToken() {
const response = await fetch("/hc/api/internal/csrf_token.json");
const response = await fetch("/api/v2/help_center/sessions.json");
const { current_session } = await response.json();
return current_session.csrf_token as string;
}

0 comments on commit 9446ef1

Please sign in to comment.