Skip to content

Commit b47a985

Browse files
committed
Fix call to work on live server
1 parent 7475f54 commit b47a985

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

experimental/test-login.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,11 @@ if (loggedInUser) {
4646
+ '</a>';
4747

4848
console.log('Testing a REST request...');
49-
fetch('/api/profile', { method: 'GET', headers: { 'Content-Type': 'application/json' } })
49+
fetch(serviceUrl + '/api/profile', {
50+
method: 'GET',
51+
headers: { 'Content-Type': 'application/json' },
52+
credentials: 'include'
53+
})
5054
.then(function (data) {
5155
if (data.ok) {
5256
return data.json();

0 commit comments

Comments
 (0)