aurelia / bundler

A library for bundling JavaScript, HTML and CSS for use with SystemJS.
MIT License
37 stars 25 forks source link

Mixed Content error on exported bundle #127

Closed aivins closed 8 years ago

aivins commented 8 years ago

Seeing unexpected behaviour when serving an exported bundle. Not even sure what process.js is for or what needs it.

Mixed Content: The page at 'https://localhost/#admin/users/new' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://localhost/#dist/process.js'. This request has been blocked; the content must be served over HTTPS.

I am using aurelia-fetch-client and my baseUrl in this case is set to https://localhost/. There's no reference to http:// anywhere in my source.

EisenbergEffect commented 8 years ago

This sounds like you have a configuration error with system.js.

EisenbergEffect commented 8 years ago

process is a native node module. It seems like something you are using is requesting that and the browser shim for that isn't getting bundled correctly.