Update securing_apps/topics/oidc/javascript-adapter.adoc

Co-authored-by: Jon Koops <jonkoops@gmail.com>
This commit is contained in:
Costas Papastathis 2022-03-23 20:26:03 +02:00 committed by Bruno Oliveira da Silva
parent 90735f3b1c
commit 71346995e5

View file

@ -121,7 +121,7 @@ const loadData = function () {
const url = 'http://localhost:8080/restful-service';
let req = new XMLHttpRequest();
const req = new XMLHttpRequest();
req.open('GET', url, true);
req.setRequestHeader('Accept', 'application/json');
req.setRequestHeader('Authorization', 'Bearer ' + keycloak.token);