Jump to content
AIDA64 Discussion Forum

freeman

Members
  • Content Count

    4
  • Joined

  • Last visited

Community Reputation

0 Neutral

About freeman

  • Rank
    Newbie

Recent Profile Visitors

319 profile views
  1. You cannot force page to fullscreen in Android Chrome. Page must have JS code like: document.webkitRequestFullscreen() https://developer.mozilla.org/ru/docs/DOM/Using_fullscreen_mode If you can't edit code, try over apps for Android. For example: https://play.google.com/store/apps/details?id=com.isolator.fullscreenbrowser2 or https://play.google.com/store/apps/details?id=de.ozerov.fully
  2. Thank You! Every thing works perfectly. SSE now can be accessed from any origin. JSONP api is great. Next week I'll end up my project and share all sources here. Right now it looks like this:
  3. Yes yes yes! I want to build custom RemoteSensor Panel using HTML. Javascript EventSource request can be blocked by browser, in order to Same Origin Policy. To make it work JS must have extra parameter: withCredentials: true So, if IP of target machine is 192.168.1.2 JS would look like this: var source = new EventSource("http://192.168.1.2/sse", { withCredentials: true }); Server (AIDA64 on target machine) should answer with extra headers: Access-Control-Allow-Origin: * Access-Control-Allow-Credentials: true Access-Control-Expose-Headers: * - it's just to be sure) But it would be realy great if you make one more API. API would answer with JSONP like: myCallback({ sensor1: { label: "CPU1", value: 37, unit: "°С" }, sensor2:{ label: "CPU2", value: 38, unit: "°С" }, sensor3:{ label: "Memory usage", value: 40, unit: "%", color: "#00FF00" } }); http://stackoverflow.com/questions/2067472/what-is-jsonp-all-about And would be perfect if you could get only needed sensor items you want, if you send extra GET param. like: http: //192.168.1.2/api?sensors=sensor1&callback=myCallback Answer would be: myCallback({ sensor1: { label: "CPU1", value: 37, unit: "°С" } });
  4. I want to build custom panel using RemoteSensor. Please add headers in your http://localhost/sse Access-Control-Allow-Origin: * Access-Control-Expose-Headers: * Access-Control-Allow-Credentials: true Or make open API for AJAX requests please
×
×
  • Create New...