We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7475f54 commit b47a985Copy full SHA for b47a985
1 file changed
experimental/test-login.js
@@ -46,7 +46,11 @@ if (loggedInUser) {
46
+ '</a>';
47
48
console.log('Testing a REST request...');
49
- fetch('/api/profile', { method: 'GET', headers: { 'Content-Type': 'application/json' } })
+ fetch(serviceUrl + '/api/profile', {
50
+ method: 'GET',
51
+ headers: { 'Content-Type': 'application/json' },
52
+ credentials: 'include'
53
+ })
54
.then(function (data) {
55
if (data.ok) {
56
return data.json();
0 commit comments