We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a774320 commit f33f770Copy full SHA for f33f770
src/ppp.jsx
@@ -40,7 +40,7 @@ class PPPPage extends basePage {
40
41
fetchPPPConfig = async () => {
42
try {
43
- const response = await fetch('/api/pppconfig');
+ const response = await fetch('/api/pppconfig', {headers: {Authorization: `Bearer ${this.state.token}`}});
44
if (!response.ok) throw new Error('Network response was not ok');
45
const data = await response.json();
46
this.setState({ config: data});
0 commit comments