Skip to content

Commit f33f770

Browse files
committed
Frontend: Add bearer token to ppp
1 parent a774320 commit f33f770

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ppp.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class PPPPage extends basePage {
4040

4141
fetchPPPConfig = async () => {
4242
try {
43-
const response = await fetch('/api/pppconfig');
43+
const response = await fetch('/api/pppconfig', {headers: {Authorization: `Bearer ${this.state.token}`}});
4444
if (!response.ok) throw new Error('Network response was not ok');
4545
const data = await response.json();
4646
this.setState({ config: data});

0 commit comments

Comments
 (0)