Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[ADDED] Allow CORS in Client API
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
Thanks. Verified to be working:

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,135 10-25-2020, 01:35 PM
Last Post: smitmartijn
  Upgrade windows client to Npcap Drake356 3 4,509 07-04-2020, 06:35 PM
Last Post: smitmartijn
  Running the client headless hjord 0 2,197 08-18-2019, 09:45 AM
Last Post: hjord
  Added support for controller use? Code-E 3 4,502 07-06-2015, 06:38 AM
Last Post: smitmartijn
  Website caveats and client nitpicking robby251 0 5,021 01-31-2014, 06:19 PM
Last Post: robby251
  FreeBSD Client gadean 3 7,909 08-13-2013, 06:51 PM
Last Post: gadean
  Can WhatPulse client record the log of every click of mouse & keyboard? gzc9047 1 8,019 06-08-2013, 03:33 PM
Last Post: smitmartijn
  ARM client [GMOT]lucb1e 5 12,979 05-11-2013, 10:30 AM
Last Post: smitmartijn
  Client Additions stan0 3 8,387 03-10-2013, 10:42 PM
Last Post: WOWVern
  New Whatpulse Client Idea stuthemonkey 3 9,178 03-06-2013, 06:13 AM
Last Post: Xander641

Forum Jump:

Users browsing this thread: 1 Guest(s)