Skip to content

Problem and error 401 #43

@david0613

Description

@david0613

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions