The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 802 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.1 (Linux)
File Line Function
/showthread.php 802 errorHandler->error



Current time: 11-22-2019, 07:24 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do I enable Cross-Origin (ability to call api from diffrent server)
03-05-2015, 10:39 PM
Post: #1
How do I enable Cross-Origin (ability to call api from diffrent server)
Hello everyone.

I got my webpagetest enviroment up and running. I now just need to be able to call the API from my main server. The tests are running on sepperate machines, even the api/webpagetest are.

www->webpagetestserver->agent

so my www webserver which ofcourse is a diffrent domain name and all needs to be able todo Cross-Origin calls.
I am very familiar with the LAMP stack where its easy to add Cross-Origin into the header of all calls, making this feature possible.

But NodeJS is new to me so I have not been able to figure out howto enable Cross-Origin for the webpagetest.js yet.

How do I enable that?

If possible, then I like to enable Cross-Origin for all nodejs related stuff. Since the only things going on on this server is the webpagetest.

Thanks.
Richard A
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
How do I enable Cross-Origin (ability to call api from diffrent server) - Richard - 03-05-2015 10:39 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)