• ¬°Welcome to the WhatPulse Forums!
Hello There, Guest! Login Register

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Title: [ADDED] Allow CORS in Client API
Threaded Mode
The client API is awesome Big Grin but at the moment there is one thing preventing me from using it as I want.

I would like to do something with the API-results in OBS. What I've done is created an OBS Browser Source loading a HTML-file which shows some whatpulse-related stats. Those stats are updated by javascript calling the API endpoint. This is where things start not working: due to CORS, an http-request from a file in the filesystem is now allowed to go to another domain, localhost in this case.

So I'd like to request the addition of the "access-control-allow-origin: *" header which would solve this problem.
Excellent idea! I'll add this into the next version.

Do you have something ready that talks to it? If so, please share - saves me some time to build a tester myself. ;-)
awesome Big Grin
and ofc, this is what I have, have fun with it Tongue http://pastebin.com/tTkUp5Rn
Thanks. Verified to be working: https://www.evernote.com/l/AQIs-8NlbgtLI.../image.png

By the way, client version 2.7.2 will have a /v1/realtime endpoint, where you can get the actual keys per second, instead of calculating it against the browser session.
ooh fancy Big Grin any ETA on 2.7.2?
The beta has been out for a while ("Enable beta versions" in the update checker settings), but I don't do ETAs for official versions. :-)

Possibly Related Threads…
Thread Author Replies Views Last Post
  Ubuntu/Linux client robertjee 4 3,236 10-25-2020, 01:35 PM
Last Post: smitmartijn
  Upgrade windows client to Npcap Drake356 3 4,583 07-04-2020, 06:35 PM
Last Post: smitmartijn
  Running the client headless hjord 0 2,246 08-18-2019, 09:45 AM
Last Post: hjord
  Added support for controller use? Code-E 3 4,573 07-06-2015, 06:38 AM
Last Post: smitmartijn
  Website caveats and client nitpicking robby251 0 5,117 01-31-2014, 06:19 PM
Last Post: robby251
  FreeBSD Client gadean 3 7,989 08-13-2013, 06:51 PM
Last Post: gadean
  Can WhatPulse client record the log of every click of mouse & keyboard? gzc9047 1 8,087 06-08-2013, 03:33 PM
Last Post: smitmartijn
  ARM client [GMOT]lucb1e 5 13,081 05-11-2013, 10:30 AM
Last Post: smitmartijn
  Client Additions stan0 3 8,451 03-10-2013, 10:42 PM
Last Post: WOWVern
  New Whatpulse Client Idea stuthemonkey 3 9,239 03-06-2013, 06:13 AM
Last Post: Xander641

Forum Jump:

Browsing: 3 Guest(s)