Skip to main content

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
21 votes
4 answers
40k views

How do I configure Nginx proxy_pass Node.js HTTP server via UNIX socket?

I am trying to configure a Nginx server to connect to a Node.js HTTP server via a UNIX domain socket. The Nginx configuration file: server { listen 80; location / { proxy_pass http://unix:/...
pvorb's user avatar
  • 1,080
13 votes
3 answers
20k views

Criteria for choosing a server to run Node.js

What criteria would I use to choose a server to run Node.js? It seems like shared-hosting is a nonstarter since it's so new. Given how it works, what would I be looking at in terms of a production ...
artlung's user avatar
  • 268
10 votes
3 answers
17k views

Is there any javascript ssh client?

I mean pure javascript client that uses HTML5 sockets and doesn't need to be installed, just open single js file in browser. Is it possible to write such client at all?
Poma's user avatar
  • 1,309
6 votes
3 answers
7k views

Is Node.js mature for enterprise security?

Our development team has been considering using Node.js for a new enterprise application that requires high-level security. The users include federal police, so there's a high chance that we'll ...
crockpotveggies's user avatar
6 votes
6 answers
17k views

Javascript Errors only on Production Server?

I am in the process of releasing a couple of asp.net websites from development to production. Everything seems to be working fine in development, but upon the release to production we get a number of ...
ChrisHDog's user avatar
  • 243
5 votes
4 answers
9k views

Is it secure to encrypt my POST variables to md5 before sending them?

I have a simple login form where a user enters their username and password. When php receives the vars via POST, it encrypts the password to md5, then compares it with the database records. My ...
Mickwaffle's user avatar
5 votes
0 answers
18k 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 ...
AriaData's user avatar
4 votes
1 answer
3k views

How to create a CSP nonce and yet continue website caching?

I am not getting any response to any way I try to phrase this question, so I keep trying. I feel I've got to be missing something, but I've searched and searched. Why isn't it obvious? Why is it so ...
jamminjames's user avatar
4 votes
0 answers
3k views

List of all Permissions-Policy header keys and values?

Does someone have a list of all Permissions-Policy header keys and values? What I have: more_set_headers "Permissions-Policy: camera=(self), fullscreen=(*), geolocation=(self), payment=()"; ...
uav's user avatar
  • 564
4 votes
1 answer
2k views

GZip compression not working on Tomcat7

I recently tried using gzip compression to improve web UI performance. I configured Tomcat Connector as below. compression="on" compressionMinSize="2048" noCompressionUserAgents="gozilla, traviata" ...
pratikpawar's user avatar
3 votes
2 answers
11k views

HTTP gzip compression not working for css or javascript in tomcat 6

Connector settings: <Connector ... compression="2048" noCompressionUserAgents="gozilla, traviata" compressionMimeType="text/html,text/xml,text/plain,text/css,text/javascript"/> This seems to ...
Draemon's user avatar
  • 527
3 votes
3 answers
4k views

Set MIME type of PHP generated JavaScript file

I have a dynamically created .js file by PHP. For this to work I added the following to an Apache .htaccess file: AddHandler application/x-httpd-php .js AddType application/javascript .js But the ....
pimvdb's user avatar
  • 157
3 votes
2 answers
715 views

The Java/1.4.1_04 user agent clashes (404) with some jQuery / Javascript

Since I put up a new javascript file on my server a few days ago I've been getting strange 404's logs. It seems that some Java user-agent clashes with some part of the jQuery (1.6.2). I send an ...
Lode's user avatar
  • 178
3 votes
3 answers
20k views

IE8 script error 800704a6?

We have a user who suddenly started getting the following error when trying to open some web apps using window.open from within an embedded web browser in our software The script uses javascript's ...
Rachel's user avatar
  • 640
3 votes
4 answers
413 views

Has my site been attacked?

This is about an online store based on Drupal 5. All of a sudden it didn't work anymore. Upon accessing the site, this error came up: Parse error: syntax error, unexpected '<' in /home/...
fretje's user avatar
  • 1,684
3 votes
1 answer
3k views

CNAME to get around same-origin policy?

I'm embedding an application via iframe into a someones site and need to be able to call a few of their javascript functions. Clearly running a top.cart.add() gets blocked by the same-origin policy. ...
Brad Herman's user avatar
3 votes
3 answers
5k views

Apache: How can I serve JavaScript via PHP?

I want to serve my JavaScript files via a PHP script. An example would be: If I were to request a JavaScript file called dir/my_file.js The server should redirect the request to a handler script ...
Christian Toma's user avatar
3 votes
2 answers
10k views

Mime type received as "text/html", server configured to send as "text/javascript"

Both firefox and chrome are showing that javascript files from my server are served as MIME type text/html. The javascript files have a .js extension. First, mime_module is installed and active: ...
a coder's user avatar
  • 809
3 votes
1 answer
410 views

What is the solution to caching vs using a CSP nonce? I've been searching for a while, and haven't found it

I've never seen a good answer to this dilemma, and I've been searching high and low. It seems it is a choice between using a nonce and caching, you can't have both. Really bad choice! We're told '...
jamminjames's user avatar
3 votes
0 answers
283 views

Query string parameters get shuffled

We're observing some strange behavior of the data send to our systems from a javascript since 9/9/2015. The problem shows up when the query string is send to our servers. Some values of the ...
tobias's user avatar
  • 31
3 votes
1 answer
280 views

How to push changes from Test server to Live server? [closed]

As a beginner I have come to the stage where I realize the problem with taking down my production server to make changes as often as I have, now that I have a couple of users on it. I created an EC2 ...
gotta have my pops's user avatar
2 votes
2 answers
3k views

Is there a workaround for using the Virtual Server 2005 Administration Website with Internet Explorer 8?

Since upgrading to Internet Explorer 8 I've been getting JavaScript errors when performing certain functions (like "Turn On") on the Virtual Server 2005 Enterprise R2 SP1 Administration Website: ...
Tom Robinson's user avatar
2 votes
2 answers
5k views

Cannot log in to Deluge Web UI?

I've set up deluge using this short guide: http://dev.deluge-torrent.org/wiki/UserGuide/ThinClient#WebUI The deluge service IS running because I can navigate to my local server and see the log in box....
nopcorn's user avatar
  • 373
2 votes
6 answers
323 views

What's the common cause for trojan downloaders on linux servers?

On several of the webservers i'm responsible for there's a javascript virus, a trojan downloader according to the antivirus i'm using. It's a minified javascript that's on the bottom of every page ...
Valentin Brasso's user avatar
2 votes
1 answer
2k 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 ...
Guy's user avatar
  • 123
2 votes
1 answer
4k views

Wildcard Domain with Google Analytics

Each user on our website has their own subdomain (e.g. bob.example.com, elephant.example.com) and they get paid for the traffic that they send to this subdomain. How can I wire up Google Analytics so ...
Mark Gladstone's user avatar
2 votes
2 answers
1k views

What technologies allow bidirectional streaming of video? [closed]

Wikipedia says that Flash allows "bidirectional streaming of audio and video". Is it possible to do that with other technologies (for example with JavaScript)? In other words, I want to transfer ...
Roman's user avatar
  • 2,639
2 votes
1 answer
11k 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 ...
RubyRedGrapefruit's user avatar
2 votes
3 answers
11k views

JavaScript and CSS fail to load in some browsers over SSL

I have a website on which we have recently enabled SSL. In most browsers, this works fine: our scripts and stylesheets are imported using HTTPS and most browsers load pages successfully. However, in ...
Shaun's user avatar
  • 187
2 votes
1 answer
370 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 ...
MindlessRouse's user avatar
2 votes
2 answers
2k 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/...
FGreg's user avatar
  • 530
2 votes
1 answer
3k 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 ...
Hasanagha Aliyev's user avatar
2 votes
2 answers
2k views

After loading a certain number of javascript/css files, the files are taking too long to load

I have a problem where on page load (after a certain number of .js or .css files) the files are taking way too long to load. At first I thought that the issue must be inside the .js files, but later I ...
barney.balazs's user avatar
2 votes
4 answers
1k views

How to avoid external Javascript problem hanging server?

I've been having a strange problem with externally linked Javascript libraries hanging my load balancer server running HAProxy. I recently integrated the Quantcast monitoring script, and it worked ...
Aldie's user avatar
  • 146
2 votes
0 answers
376 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 ...
zipzit's user avatar
  • 121
2 votes
0 answers
793 views

From Http to Https NodeJS Websockets on Apache Server

Here is my problem. I have a virtual machine, on windows, the Apache server (2.4) is installed on it. The vm is on the network, so that other people can reach it directly on http://192.168.100.22 (...
Julo0sS's user avatar
  • 163
2 votes
0 answers
1k views

Can't go to route using nginx and Express.JS

So I have express.js set up behind nginx and when I go to website.com/users, I get a 404. But when I go to website.com, the page loads fine. This appears to be all other routes too, I can't get to ...
John's user avatar
  • 29
2 votes
0 answers
1k views

nginx proxy with CAS

I have a JS application that issues REST calls from the client browser to a data source that sits behind nginx. We need to implement CAS authentication for the application to manage access. However ...
nick_v1's user avatar
  • 365
2 votes
0 answers
643 views

Logon script does not run for all users

We have a standalone common-use workstation running Windows XP Pro SP3 and have created a script using Javascript (scriptname.js) that is to be run for each user. The file was added as a user logon ...
Herohtar's user avatar
  • 121
2 votes
1 answer
1k views

IIS 7.5 Not Compressing Javascript: NO_MATCHING_CONTENT_TYPE

I have IIS 7.5 set to compress all static files (the default), yet it does not compress .js (javascript) files. When I turn on failed request tracing for compression, the error I get for the ...
Mason G. Zhwiti's user avatar
2 votes
1 answer
799 views

node.js ./configure warnings

I'm trying to install node.js and I get this list of warnings when I run ./configer. I don't know which libraries/packages I miss on my Debian installation (Linux 2.6.32.6 ppc GNU/Linux on a Bubba2 ...
microspino's user avatar
1 vote
4 answers
179 views

Did i install this Google analytics code correctly?

All, I'm not sure what I'm doing wrong. I installed the code at the bottom of each page before the body tag but after 3 or 4 days the GA webpage is giving me no response ( just the yellow triangle) ...
Crash893's user avatar
  • 767
1 vote
5 answers
273 views

how is it possible that a hacker could have inserted a piece of javascript code at the bottom of several of my pages

Somehow some javascript code got appended to the bottom of several of my index pages on my site. I know it's a trojan or iframe attack. However, I am wondering how is it even possible that someone ...
user avatar
1 vote
2 answers
6k views

Javascript 404 not found, but PHP and CSS loading

I've got a Ubuntu 10.04.4 LTS cloud server running the default LAMP stack. My website is serving my PHP pages, the images and CSS to go with them, and most of my JS is loading, but there is a ...
Pete's user avatar
  • 303
1 vote
2 answers
315 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. ...
Kyle Souza's user avatar
1 vote
2 answers
3k views

Got a malware on my hosting provider which infect JavaScript files .. how do I find the entry point?

This morning some sites which are hosted on the server as me started triggering malware alerts and started to redirect traffic to external sites. I've found out that a line of packed javascript was ...
h3.'s user avatar
  • 189
1 vote
3 answers
6k views

proxy script does not work when two networking cards are connected. How to fix this?

I have deployed a wpad.dat. Works like a charm except for some users that are connected to two networks at the same time (ethernet and another networkadapter that emulates an analog modem for fax). I ...
mrt181's user avatar
  • 171
1 vote
1 answer
4k views

How can I build Node.js using static libssl and crypto libraries?

[Update] A solution has been found: https://github.com/robhawkes/node-extension/issues/1 I'm embedding Node within a browser extension and don't want the user to manually install openssl or even know ...
Robin Hawkes's user avatar
1 vote
3 answers
6k views

Jquery/Javascript not working when accessing webpage through system IP instead of localhost

I don't face this problem while working on localhost only when I access the page using the IP address of my system this happens and it only happens with IE (works on all other browsers). By the way I'...
pranky64's user avatar
  • 121
1 vote
5 answers
2k views

Hide javascript folder on server

I've noticed on some sites, when I go to eg. www.example.com/js where there javascript is stored, it is forbidden. On my website currently, if users browse to www.mysite.com/js they will see all of ...
user avatar