Skip to content

Commit

Permalink
Tweak web
Browse files Browse the repository at this point in the history
  • Loading branch information
malliina committed Sep 17, 2023
1 parent 2d45511 commit 1696be4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
5 changes: 1 addition & 4 deletions musicmeta/frontend/webpack.base.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,12 @@ const cssDir = path.resolve(rootDir, 'css');
const WebApp = Merge(ScalaJS, {
entry: {
styles: [path.resolve(cssDir, './musicmeta.js')]
// fonts: [path.resolve(cssDir, './fonts.js')]
},
module: {
rules: [
{
test: /\.(png|woff|woff2|eot|ttf|svg)$/,
use: [
{ loader: 'url-loader', options: { limit: 8192 } }
],
type: 'asset/inline'
},
{
test: /\.less$/,
Expand Down
2 changes: 1 addition & 1 deletion musicpimp/app/controllers/musicpimp/Secured.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ object Secured {

def logUnauthorized(request: RequestHeader): Unit = {
val remoteAddress = Proxies.realAddress(request)
log warn s"Unauthorized request '${request.path}' from '$remoteAddress'."
log.warn(s"Unauthorized request '${request.path}' from '$remoteAddress'.")
}

def redirecting(auth: Authenticator[AuthedRequest]): AuthBundle[AuthedRequest] =
Expand Down
2 changes: 1 addition & 1 deletion pimpcloud/app/com/malliina/pimpcloud/CloudLoader.scala
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class CloudComponents(context: Context, conf: AppConf)
val allowedEntry = allowedCsp.mkString(" ")

val csp =
s"default-src 'self' 'unsafe-inline' 'unsafe-eval' $allowedEntry; connect-src *; img-src 'self' data:;"
s"default-src 'self' 'unsafe-inline' 'unsafe-eval' $allowedEntry data:; connect-src *; img-src 'self' data:;"
override lazy val securityHeadersConfig = SecurityHeadersConfig(
contentSecurityPolicy = Option(csp)
)
Expand Down
5 changes: 1 addition & 4 deletions pimpcloud/frontend/webpack.base.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,12 @@ const cssDir = path.resolve(rootDir, 'css');
const WebApp = Merge(ScalaJS, {
entry: {
styles: [path.resolve(cssDir, './pimpcloud.js')]
// fonts: [path.resolve(cssDir, './fonts.js')]
},
module: {
rules: [
{
test: /\.(png|woff|woff2|eot|ttf|svg)$/,
use: [
{ loader: 'url-loader', options: { limit: 8192 } }
],
type: 'asset/inline'
},
{
test: /\.less$/,
Expand Down

0 comments on commit 1696be4

Please sign in to comment.