Bug reportat per Moises Palma de Limit el 31/10/2017 11:08:
hem trobat un bug al plugin d'escaneig de Dynamic Web Twain. Quan se crida als scripts de DWT per pujar el fitxers escanejats, la crida es fa sempre per via http:
Es problema es que quan s'empra el protocol 'https' la crida es fa sempre per 'http', provocant un error de navegador 'Mixed Content'. La solució que em aplicat es la següent:
Bug reportat per Moises Palma de Limit el 31/10/2017 11:08:
hem trobat un bug al plugin d'escaneig de Dynamic Web Twain. Quan se crida als scripts de DWT per pujar el fitxers escanejats, la crida es fa sempre per via http:
DynamicWebTwainScanWebPlugin.java [520]
out.print( " DWObject.IfSSL = false; // Set whether SSL is used\n" ); out.print( " DWObject.HTTPPort = location.port == '' ? 80 : location.port;\n" );
Es problema es que quan s'empra el protocol 'https' la crida es fa sempre per 'http', provocant un error de navegador 'Mixed Content'. La solució que em aplicat es la següent:
out.print( " var isSSL = (window.location.protocol == 'https:');\n" ); out.print( " DWObject.IfSSL = isSSL; // Set whether SSL is used\n" ); out.print( " DWObject.HTTPPort = location.port != '' ? location.port : isSSL ? 443 : 80;\n" );