peter.sh icon indicating copy to clipboard operation
peter.sh copied to clipboard

Problem and error 401

Open david0613 opened this issue 5 years ago • 2 comments

HI, I have a problem, error: POST https://www.xxxx.fr/notif2/push.php 401 (anonymous) @ VM107 push_generator.js:787 Promise.then (async) PushGenerator.sendMessage @ VM107 push_generator.js:778 And line 778 to 787: `.then(function(request) { var headers = new Headers(); Object.keys(request.headers).forEach(function(headerName) { headers.append(headerName, request.headers[headerName]); });

// Proxy everything through a PHP script to get around CORS restrictions.
headers.append('X-Endpoint', request.url);

return fetch('https://www.xxxx.fr/notif2/push.php', {
  method: 'POST',
  headers: headers,
  body: request.body
});`

I can't find where is the problem. Can you help me ? Thank you

david0613 avatar Feb 13 '20 15:02 david0613

I have the same issue. Is there any help someone can give?

schelhaas avatar Jun 02 '23 21:06 schelhaas