Search results

  1. W

    use api from js (xhr)

    i added CORS header to httpserver.pm $resp->header('Server' => "pve-api-daemon/3.0"); +$resp->header('Access-Control-Allow-Origin' => "*"); +$resp->header('Access-Control-Allow-Methods' => "GET, POST, OPTIONS"); +$resp->header('Access-Control-Allow-Headers' =>...
  2. W

    use api from js (xhr)

    Hello, i trying use json api from javascript. I use another domain, and browser send OPTIONS request to node. Node API not have "Access-Control-Allow-Origin" header in reply. Result - 501 method 'OPTIONS' not available What i may use api from js?
  3. W

    noVNC console via PHP API

    normally. i trying another path: use standart noVNC package, and prox api. JS open new window at this url: but have error "Server disconnected (code: 1006)"
  4. W

    noVNC console via PHP API

    now i replace body of "pve2_api.class.php" at your link body, no effect :) strange, very strage..
  5. W

    noVNC console via PHP API

    i trying root user, has no effect.. Permissions "api" user: http://joxi.ru/8ZrJyDNTQko7Aj.jpg if i change username or password to invalid, i see "Login to Proxmox Host failed.". Its worked.
  6. W

    noVNC console via PHP API

    http://joxi.ru/752aY48il0qG20.jpg - right? vnc.php page: <?php session_start(); ?> <html> <head> <title>noVNC extern test</title> </head> <body> <?php require("pve2_api.class.php"); $pve_nodes = array( "node0" => array( "ip" => "myexternalip", "name" => "mynodename"...
  7. W

    noVNC console via PHP API

    now its ok, i trying change hostname, return to "nodename" back. Now gui worked normaly. vnc.php page (with iframe) work only if login this user to proxmox gui at this browser..
  8. W

    noVNC console via PHP API

    invalid hostname, fixed. From gui novnc worked normally.
  9. W

    noVNC console via PHP API

    i trying 'root', PAM user 'api' defined PVEVMAdmin or PVEVMUser permissions.. Now i have problem - Failed to connect to server (code: 1006) From ProxMox GUI too.. Need restart proxmox?
  10. W

    noVNC console via PHP API

    Thanks for reply! I use class at your link, added into fucntion "setCookie" from your post and call this function after use login(), /vncproxy & /vncwebsocket API. Have error at my screenshot, 401 - no ticket.. I have ticket with API reply, in array. Maybe, i need use it? Now i trying this: as...
  11. W

    noVNC console via PHP API

    No worked this method at proxmox 3.4Error "No Ticket 401" (screenshot http://joxi.ru/BLmGDx8tBZgQ2l.jpg) in frame. At proxmox webgui started console task. If after this return to your script at this browser, all ok.

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!