-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Description
ps. sorry for my english.
I have site that work over https. I add changes to webpacker to work with ssl.
development.js
// Note: You must restart bin/webpack-dev-server for changes to take effect
const merge = require('webpack-merge')
const sharedConfig = require('./shared.js')
const { settings, output } = require('./configuration.js')
module.exports = merge(sharedConfig, {
devtool: 'cheap-eval-source-map',
output: {
pathinfo: true
},
devServer: {
https: true,
clientLogLevel: 'none',
host: settings.dev_server.host,
port: settings.dev_server.port,
contentBase: output.path,
publicPath: output.publicPath,
compress: true,
headers: { 'Access-Control-Allow-Origin': '*' },
historyApiFallback: true,
watchOptions: {
ignored: /node_modules/
},
stats: {
errorDetails: true
}
}
})
But its raise error in browser. Its download applictions js over http? Why so?
Mixed Content: The page at 'https://localhost:3000/' was loaded over HTTPS, but requested an insecure script 'http://localhost:8080/packs/application.js'. This request has been blocked; the content must be served over HTTPS.
server puma.
Metadata
Metadata
Assignees
Labels
No labels