I'm trying to run the command
curl https://www.spoonrocket.com > indexspoon.html
and I get back a page full of html and stuff. However when I place the html file in my browser it is empty. I'm trying to figure it out but came up with nothing. Why does the file look empty when I have it in my browser, but in actuality there is actually a lot of content in indexspoon.html?
This is not an issue with curl, it appears to be an issue with your browser...modern browsers have tightened up their security on making cross domain request. This can help to prevent fatal attacks such as "Man in the Middle".
I notice that your HTML document has scripts that use jquery which makes Ajax request..
Most browsers have a built it web console and a debugger.
On the Menubar of your broswer
Tools--->web developer--->web console
you will notice in you console, their is a fatal error
NS_ERROR_DOM_BAD_URI: Access to restricted URI denied
It appears that one of the scripts in the html document is making ajax request using jquery which is being blocked by your browser
click the Debugger tab next to your web console window and you will notice this
Related
I have a JSF web application which uses a webcam to capture the image using Primefaces p:webcam.
It works fine except the fact, giving the following warning every time the page loads on computers that do not have a webcam.
Webcam.js Error: Could not access webcam: NotFoundError: Requested device not found NotFoundError: Requested device not found
How can I suppress that warning?
Try to separate the part of the page from the page given to all users.
For example, the page has a link "Click here to capture". Direct it to a new page or display a dialog with a part that is rendered only when going to capture the image.
I am building a simple webpage (http://www.riffomonas.org/reproducible_research/) using Jekyll that is taking a long time to load on Safari. On Firefox and Chrome it loads instantly. In Safari, when I go in to the Web Inspector, it has two errors. The first...
Failed to load resource: The request timed out
The resource it was trying to get is http://api.pubpeer.com/v2/pubposts?filter=doi&devkey=PubMedSafari.
The second...
TimeoutError (DOM Exception 23): The operation timed out.
It's indicating that it was trying to access PP.js
The weird thing to me is that neither the API link or the Javascript are referenced in the code or the rendered HTML.
Any suggestions?
It turns out that the problem was the PubPeer Safari extension, which they are no longer supporting. Once I removed the extension everything worked great.
I am developing a chrome extension which loads a url in an iFrame. The actual url is hosted using https, however I want to debug it on localhost, thus wanted to allow mixed content. I can do that by allowing unsafe scripts by clicking the shield icon present in the address bar. The problem is it still generates a lot of warnings in the developer console which spams the console and doesn't let me see the actual debug messages.
Is there a way to remove the Mixed Content Warnings from the console, just for the development purpose?
The warning text example is as follows -
Mixed Content: The page at 'https://www.example.com/' was loaded over
HTTPS, but requested an insecure stylesheet
'http://localhost:8080/test.css'. This content should also be served
over HTTPS.
I just needed to use Filters to select the Logs and Errors and deselect everything else. The Filter option is available in the console view toolbar.
I've previously explained that I was trying to link a ejs page to a jade-based app. Then after many failed attempts I tried to convert that page to Jade and still ended up with a truckload of errors. Finally, I thought about simply putting a HTML Link that would redirect me to that ejs page on click.
What I fail to understand though, is why Firefox has no problems displaying the page when I directly put its path in the browser:
file:///home/ghanem/Documents/Project/views/account/el/el.ejs
But when I try to access it from my app through a simple code, it doesn't redirect me to the same very page:
My Stubborn Link
I should also point out that I've already set security.fileuri.strict_origin_policy to false in Firefox.
What I fail to understand though, is why Firefox has no problems displaying the page when I directly put its path in the browser
Because it trusts you
But when I try to access it from my app through a simple code
Your app is "just another website" as far as Firefox is concerned. It doesn't trust it.
I should also point out that I've already set security.fileuri.strict_origin_policy to false in Firefox.
That lets XMLHttpRequest access file:// URLs providing the document it is running in was loaded from a file:// URL.
See mozillaZine: Links to local pages do not work.
user_pref("capability.policy.policynames", "localfilelinks");
user_pref("capability.policy.localfilelinks.sites", "http://localhost:7896");
user_pref("capability.policy.localfilelinks.checkloaduri.enabled", "allAccess");
I have an application that uses Google Drive for document storage and preview functionality, but recently the iFrames that the documents are loading into are not displaying anything. Upon inspection of the console, Chrome declares that it blocked the fram from running insecure content, and that is why the file preview did not load.
The initial call to preview this file is to a url that looks like this:
https://docs.google.com/document/d//preview
There is a redirect along the way that takes the following form but because it uses http instead of https, Chrome blocks the content from loading.
http://www.google.com/url?sa=p&q=https://www.google.com/accounts/ServiceLogin?service%3Dwise%26passive%3Dtrue%26go%3Dtrue%26continue%3Dhttps://docs.google.com/document/d//preview?pref%253D2%2526pli%253D1
Is there any way around this issue? It is blocking a core functionality of my application currently, so any advice would be appreciated. I can provide a screenshot of the full stack of network loads in necessary, but this is the only URL that is not http compliant.
Thanks in advance for your help.
Hacked that. Add a "?pli=1" without quotes at the end of the URL to avoid redirect (after "/preview" or "/edit") and land directly to the document.