在 HTTP 和 HTTPS 之间跨协议时使用 Amplify 进行本地存储

Using Amplify for local storage when crossing protocols between HTTP and HTTPS

我在我的网站上使用 Amplify 1.0a1,但在使用时遇到了问题。我将 prod_id 的值存储在一个页面(在 HTTP 下)的 localStorage 中,然后我移动到 'list' 页面(在 HTTPS 下)并且我无法访问存储中的值.

在Firebug中看不到localStorage下的值。

amplify.store('list_id_to_add', prod_id);
window.location = base_url + '/list/';

然后在 'list' 页面上我有这个 JavaScript:

if(amplify.store('list_id_to_add')){        
    addStoredProductsTolist();
} else {
    console.log('theres nothing');
}

似乎无法在 HTTP 和 HTTPS 之间共享本地存储值。