printdotio / pio.js

An embeddable widget that enables users to quickly and easily monetize a webpage by enabling photo-product sales of its images.
4 stars 0 forks source link

SSL Certs Not Trusted on Staging #93

Closed nicholasdunbar closed 9 years ago

nicholasdunbar commented 9 years ago

Hi @benhoxie @printioengineering and @thetriciarussel (Tricia Russel). I am from the partnering company (6 Genius Incorporated) and I was told to contact you via GitHub by Tijana Evstratiev.

I'm having an issue in staging where Firefox is blocking the requests because the SSL certs are not from a trusted source. Here is the reproduction case:

1.) Configure pio.js and open it inside of an iframe

PIO.config({
            // required -- api key
            recipeId:"blblblblblblaaablblaba",
            //REQUIRED
            // url of widget (can be staging or live)
            url: 'https://staging.widget.print.io/widget/'

        });
        drawingPath = 'https://sketchnpass.com/images/poopMan.jpg';
        PIO.open({
             images:[drawingPath]
        });

2.) Run code in Firefox 38.0.5 in an iframe

Expected Result: Widget loads Actual Result: the grey div with id="__pio_f" is added to DOM but the pio iframe is invisible.

3.) go to widget url (https://staging.widget.print.io/widget/) directly by pasting the url into the browser address bar.

Result: Connection Untrusted (you know this thing --> https://support.mozilla.org/en-US/kb/connection-untrusted-error-message)

4.) add exception to firefox to bypass the ssl warning 5.) Run pio initialization code from step 1 in iframe again

Result: Widget loads and loading screen comes up

6.) Wait for product page to load

Expected Result: The list of products would normally appear on the categories page Actual Result: loading wheel just runs on the categories page. The product list never loads. print-io-loading-screen

Firefox complains of the following: firefox is blocking

Thank you for your help in advance

micahasmith commented 9 years ago

we have a fix for this in the works-- hoping to get it out next week.

for now, and as a temp fix until we get that, you can set the url like so:

PIO.config({
  url:"https://bowser.print.io/widget/"
});
nicholasdunbar commented 9 years ago

Thank you

micahasmith commented 9 years ago

this has been fixed-- can use 'https://staging-widget.print.io/widget/'