Questions tagged [javascript]

JavaScript (not to be confused with Java) is a dynamic, weakly-typed language used for client-side as well as server-side scripting. Use this tag for questions regarding ECMAScript and its various dialects/implementations (excluding ActionScript and Google-Apps-Script). Unless another tag for a framework/library is also included, a pure JavaScript answer is expected.

Filter by
Sorted by
Tagged with
0
votes
0answers
38 views

Powershell script for automating performance center test execution and fetching result post execution

I want to achieve the below using either Powershell scripting(preferred) or javascript(Cannot install node.js to install any npm package) Execute test from Performance center Post run fetch the ...
0
votes
1answer
22 views

crypt(): No salt parameter was specified. You must use a randomly generated salt and a strong hash function to produce a secure hash function

I'm getting the following password error. I have PHP 7.2 variant(to php version 5.5 does not appear to me this problem ), the following code : function make_key($length) { $valid_chars = '...
0
votes
1answer
16 views

Capture client browser console using Shell and save it to a file

I want to find a way to capture a client browser console that is using my server, and save it to a file inside the server, is this possible using a shell script ?
0
votes
0answers
17 views

How do I block site redirects from injections ads?

I have a site where I have various advertisements from a few advertiser , and from time to time my site is redirected how many other porn sites etc ... I installed anti adblock script because I gain ...
1
vote
1answer
104 views

Why must the XHR status be set before echoes in PHP?

Perhaps this question belongs on Stack Overflow or another site instead, in which case please tell me and don't just downvote; I will gladly move it. Anyway, I'm just learning the very basics of ...
0
votes
0answers
27 views

Specific time range intervals for the user

While using a start_time and end_time in an HTML file for django application. I have used the time tag as follows: <div>Start Time <input type="time" min="" max="" id="" name="start_time">...
1
vote
0answers
40 views

CORS error despite CORS being enabled in app server and Nginx

I have a web application and server which is fully functional in a debugging environment, however when it's hosted for production, I get the following error in the browser console: Cross-Origin ...
0
votes
1answer
25 views

Apache: No custom headers in environment variables

I've just installed a new webserver (Debian Buster, Apache, Dovecot, ISPConfig) to replace an old webserver. One of my websites uses custom request headers (through Javascript) to pass information to ...
0
votes
1answer
27 views

Scheduled Copy Bigquery View/Query to Google Sheet

I have a BigQuery View/Query that every morning I need to run and copy the result to a Google Sheet. I am using Javascript, and plan to use the node.js BigQuery client library and the Google Sheets ...
0
votes
0answers
49 views

How can I deploy a bookmarklet to users and restrict them from editing it?

I work for a large firm and have built a custom bookmarklet that certain users will soon be using for their work in IE11. From a sys admin perspective, is there a way I can configure the bookmarklet'...
1
vote
1answer
144 views

Cloudfront disrupting authentication with JSON Web Token

Short version: my jwt token is not surviving a refresh when pointing to domain behind Cloudfront. Not sure if this is best posted here or on stackoverflow, but since I think I've isolated the problem ...
0
votes
0answers
24 views

Point URL to another folder

I have a sub domain: sub.example.com pointing to /var/www/wildcard and I want to serve an app in a different language from: sub.example.com/app So I've added: Alias "/app" "/var/www/app" Which ...
2
votes
1answer
95 views

Renaming the index.html on Google App Engine

Ok, let me 1st come clean. I mistakenly added a 365d expiration date to my index.html file. I've now made a change to a JS file, which changed the name of the import in my index.html and now it's ...
1
vote
0answers
27 views

How to add Google TPU to javascript coded web application at AWS?

Edit; I think I just realized that what they are selling is not an add on item to your existing web application, but that they want you to use their servers(instead of AWS), and are implying that ...
1
vote
1answer
40 views

Why is upload way faster and more alternating in speed than download on local machine

I am writing a speed test to determine browser-server connection speed (js+php but I don't think it matters). I send a bunch of data-packages in different sizes and measure the time they need to reach ...
0
votes
2answers
166 views

Check if a remote machine is running

I want to connect to 2 machines remotely. For doing that I should first make sure that both the machines are running. One way to do this is by using ping which might not work sometimes because of the ...
0
votes
0answers
15 views

Access source url in 301 redirect Nginx and javascript

I have two domains www.abc.com and www.pqr.com . I want to redirect the user from "www.abc.com" to "www.pqr.com" for all requests. Redirection is working fine. I want to display a ...
0
votes
0answers
70 views

Relative path return 404 on ubuntu

I developed a small nodejs application and I'm facing a weird issue. Essentially, I'm using ExpressJS and I configured the static files, such as (js, css, etc...) to that path: app.use(express.static(...
-2
votes
1answer
155 views

Error while connecting to MongoDB database

I'm getting this error which I never used to get before. I haven't changed any code, and I am suddenly getting this weird error and it won't do anything but spit out this error (it won't do the code I ...
0
votes
1answer
12 views

Get javascript load calling stack

Is there some tool that will give me a load stack of the javascript files our web site loads? Our page is slow because of some javascript files load times being slow, but they're not file we're ...
0
votes
1answer
335 views

nginx set different document root for a proxypass

I'm just trying to run a nodejs app I made on a proxypass domain, and have it work exactly as it did on my desktop. However, for some reason, even though I defined a seperate document root for this ...
2
votes
1answer
4k views

nginx connection refused while connecting to upstream

I have a server on which I've deployed an API (Sinatra). I run that API on port 9292 and proxy requests to it. I also need to deploy a static javascript file and its supporting resources. I do that ...
0
votes
1answer
20 views

how to point parts of a single url to 2 different servers using nginx

I have pointed a location /tanya to an address http://52.221.238.24/tanya;, I also want /tanya/t/ to point to the same IP. However, I need to point /tanya/dynamically_generated to point to another IP ...
0
votes
1answer
295 views

web page linked JS and CSS files download as Chinese characters

This is a weird one. I have devised a minimal web page http://localhost/Default.htm on a Windows 10 IIS server that demonstrates the error. <!DOCTYPE html> <html> <head> <...
1
vote
0answers
2k views

nginx reverse proxy Nodejs - 404 not found

I have a simple NodeJS application that needs to display a few webpages. I have the Node app running at http://localhost:3100 and want to use an NGINX Reverse Proxy to allow users access to the app ...
0
votes
2answers
261 views

Microsoft VBScript compilation error '800a0408'. IIS ASP Javascript serving error

I have a server with IIS 6.1 In a Windows Server 2008 which is serving an ASP web site, the page is running OK, and the javascript is being served correctly as you can see here. But in another ...
2
votes
0answers
6k views

How to Enable JavaScript for wget in linux for grabbing a website?

I use wget like this for save site : wget --page-requisites --no-parent --mirror http://example.com/index.html -P /home/ in Some cases It does NOT work, Error is : This site requires Javascript to ...
2
votes
2answers
459 views

Proxy website that uses javascript to change window.location?

Little bit of a newb when it comes to configuring httpd but here's my situation: I'm trying to proxy an application (let's call it catsapp) that I have no control over with httpd. catsapp, an html/...
0
votes
1answer
853 views

IIS 7.5 not able to server Javascript file, throws 500 error.

I have a site sitting on IIS 7.5. There are numerous JavaScript files that are being served from a scripts folder. Most of those files are served properly but there is one file that causes IIS to ...
0
votes
1answer
622 views

How to configure .htaccess to run JavaScript with node as CGI

I'm testing this on my linux localhost. This is what I'm trying: balter@spectre:/var/www/html$ cat .htaccess Action cgi-node "/usr/bin/env node" AddHandler cgi-node .js balter@spectre:/var/www/html$...
0
votes
2answers
38 views

Bypass Browser Cache with Server Settings in Large Production Environment

We recently applied a patch to our ERP system that updated HTML, JavaScript and CSS files. After applying the patch a large volume of users called the help desk to report loss of functionality on the ...
0
votes
1answer
431 views

Firewall get slow download some CSS and JS files

Our company website is hosted on our infrastructure and external user can access it OK. However, when I try to access from our intranet, some CSS and JS files always take exactly 2 minutes to ...
0
votes
0answers
5k views

Tomcat 8.5.15 not loading static resources

I have upgraded my local tomcat from version 8.0.36 to 8.5.15. I have a project that has static resources (css, js and vm) inside a project in an Eclipse workspace, linked in the pom profile ...
1
vote
1answer
2k views

Nginx - Even after adding the directive 'access control allow origin' the request logs error

I am trying to run nginx infront of my nodejs application (I am using windows machine) My NodeJS Application is running in 3000 port I have started the Nginx at 8070 port When i try to hit http://...
0
votes
1answer
928 views

Nginx Cache status Miss even after adding caching

I am new to caching on nginx. I have been trying to set caching on server but X-Cache-Status is giving a MISS even after adding configurations for css/js/and images. This is leading to high load time ...
0
votes
1answer
568 views

Nginx as cache: Location extension matching

I want to use a nginx container as proxy-cache. My goal is setting-up an CDN using docker swarm with N replicas of that container. Well, i have a html page that points at this URL: 172.17.0.1:9000/...
0
votes
2answers
1k views

JavaScript “AH01215: (8)Exec format error” “End of script output before headers” on Apache

Finally time to apply JavaScript to a particular web site, so I wrote some code that works fine in a test sub-directory, but when I went to deploy this to the web site I ran into problem(s). The ...
1
vote
1answer
92 views

MediaWiki foreground not rendering tabs in content section

We are having issues getting the foreground or foundation skins in MediaWiki to render any tabs in the content section of our pages. This site is a demo, hosted on GoDaddy, but we have also tried ...
0
votes
0answers
2k views

Optimization - Leveraging Browser cache not working for .js and .png files

I'm optimizing a website and I can't leverage browser caching for .js and .png files. My .htaccess looks like this: AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html ...
2
votes
1answer
1k views

CSP nginx nonce

I have some problems with adding CSP to my site. I configured Content-Security-Policy-Report-Only in my nginx configuration. And i get this. adsbygoogle.js:37 [Report Only] Refused to apply inline ...
1
vote
2answers
200 views

Google Analytics code being added to every site on server

I have an Ubuntu server hosting several websites, some Wordpress some just plain HTML, but every single page has the exact same Google Analytics script on it when I view the source in a web browser. ...
1
vote
1answer
2k views

parse-server upload size limit , more than 100MB?

I am trying to upload a file to my parse server(using javascript sdk), but I need to make sure i can upload up to 500MB (for example). Is it possoible to be done in parse-server ? Can it be edited in ...
2
votes
0answers
196 views

Is there a non-invasive test of uPnP enabled network?

I'm trying to figure out if there is a way to do a non-invasive test on different networks to see if Universal Plug'n'Play (nPnP) is enabled at the router. i.e. Is Internet Gateway Device Profile ...
0
votes
1answer
140 views

Send pageview in Piwik

Sorry for this very basic question but I can't figure it out. On my website I'm moving from Google Analytics to Piwik. I got Piwik working however, I can't trigger a pageview. The main problem is ...
1
vote
1answer
45 views

JavaScript interpreters on older Debian installations (sarge)

I am goign to write a few scripts for managing tasks via command line on the servers. I will use the NodeJS Debian package in servers that support it, but I have a few servers still in Debian 3.1 (...
0
votes
1answer
5k views

NGINX - Cannot set Cache-control for redirected .js files (with alias + rewrite)

I have successfully setup an nginx server which uses both alias + rewrite as in the below configuration. Everything works except that javascript files are not enforced browser caching. Server url: ...
0
votes
0answers
145 views

Meteor JS issues on failover (Delay in reconnection)

Our meteor deployment contains two meteor nodes, behind a network load balancer (Google cloud NLB which simply passes on requests to a target pool of 2 Ubuntu 14.04 meteor instances). Each node has a ...
1
vote
1answer
156 views

multiple redirects on lighhttpd

I have a request to redirect multiple individual URLs to new individual URLs. This is the situation: **Old URL --> New URL** old.domain.org/ --> ...
0
votes
1answer
148 views

How to filter JS:ScriptIP-INF (TRJ) in BBClone Webstatistic

I`m using the webstatistic bbclone on my server. In the last month my virus scanner sometimes blocks the details page. it displays the detection of JS:ScriptIP-INF (TRJ) on my bblone. But I ...
1
vote
1answer
2k views

IIS: requesting PNG returns 401

I am attempting to create a web application, and I am testing it on my desktop using IIS. My problem comes whenever I attempt to request a PNG image. The server responds with a 401 specifically for ...