peter.sh
peter.sh copied to clipboard
Problem and error 401
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
I have the same issue. Is there any help someone can give?