Difference between revisions of "Cannot download pcap/audio from spooldir when using chrome and nginx"

From VoIPmonitor.org
Jump to navigation Jump to search
(Created page with "If you are unable to download audio/pcap files from GUI in chrome, and you are using nginx as a web-server: enable "Developer tools = F12" and check in console - if You can se...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 +
 +
 +
 
If you are unable to download audio/pcap files from GUI in chrome, and you are using nginx as a web-server:
 
If you are unable to download audio/pcap files from GUI in chrome, and you are using nginx as a web-server:
 
enable "Developer tools = F12" and check in console - if You can see when tried to download file errors like following:
 
enable "Developer tools = F12" and check in console - if You can see when tried to download file errors like following:
  app-16.35.js:8 POST http://voipmonitor.org:12481/php/model/utilities.php net::ERR_BLOCKED_BY_RESPONSE
+
  app-16.35.js:8 POST http://voipmonitor.org/php/model/utilities.php net::ERR_BLOCKED_BY_RESPONSE
  
 
Change your nginx settings:
 
Change your nginx settings:
Line 7: Line 10:
 
  #  add_header              'X-Frame-Options' 'DENY';
 
  #  add_header              'X-Frame-Options' 'DENY';
 
  add_header              'X-Frame-Options' 'SAMEORIGIN';
 
  add_header              'X-Frame-Options' 'SAMEORIGIN';
 +
 +
If GUI is accessible via voipmonitor.org for example, you can use following instead
 +
#  add_header              'X-Frame-Options' 'DENY';
 +
add_header              'X-Frame-Options' 'ALLOW-FROM http://voipmonitor.org';
  
 
And restart nginx service:
 
And restart nginx service:
 
  service nginx restart
 
  service nginx restart
 +
 +
 +
 +
== change in a browser ==
 +
Another approach is to install chrome extension "Ignore X-Frame headers" to ignore X-frame headers or to use another browser than chrome.

Latest revision as of 16:32, 29 May 2017


If you are unable to download audio/pcap files from GUI in chrome, and you are using nginx as a web-server: enable "Developer tools = F12" and check in console - if You can see when tried to download file errors like following:

app-16.35.js:8 POST http://voipmonitor.org/php/model/utilities.php net::ERR_BLOCKED_BY_RESPONSE

Change your nginx settings: vim sites-available/voipmonitor.conf

#  add_header              'X-Frame-Options' 'DENY';
add_header              'X-Frame-Options' 'SAMEORIGIN';

If GUI is accessible via voipmonitor.org for example, you can use following instead

#  add_header              'X-Frame-Options' 'DENY';
add_header              'X-Frame-Options' 'ALLOW-FROM http://voipmonitor.org';

And restart nginx service:

service nginx restart


change in a browser

Another approach is to install chrome extension "Ignore X-Frame headers" to ignore X-frame headers or to use another browser than chrome.