Restore v2 layout in dev.

This commit is contained in:
James Cole
2026-03-18 06:10:21 +01:00
parent 3a971d738c
commit f7c01e6821
4 changed files with 6 additions and 6 deletions
+4 -3
View File
@@ -70,16 +70,17 @@ class SecureHeaders
// overrule in development mode // overrule in development mode
if (true === config('firefly.is_local_dev')) { if (true === config('firefly.is_local_dev')) {
$ip = '192.168.96.165';
$csp = [ $csp = [
"default-src 'none'", "default-src 'none'",
"object-src 'none'", "object-src 'none'",
sprintf("script-src 'unsafe-eval' 'strict-dynamic' 'nonce-%1s'", $nonce), sprintf("script-src 'unsafe-eval' 'strict-dynamic' 'nonce-%1s'", $nonce),
// sprintf("style-src 'self' 'nonce-%1s' https://10.0.0.15:5173/", $nonce), // safe variant // sprintf("style-src 'self' 'nonce-%1s' https://10.0.0.15:5173/", $nonce), // safe variant
"style-src 'self' 'unsafe-inline' https://10.0.0.15:5173/", // unsafe variant sprintf("style-src 'self' 'unsafe-inline' https://%s:5173/", $ip), // unsafe variant
"base-uri 'self'", "base-uri 'self'",
"form-action 'self'", "form-action 'self'",
"font-src 'self' data: https://10.0.0.15:5173/", sprintf("font-src 'self' data: https://%s:5173/", $ip),
sprintf("connect-src 'self' %s https://10.0.0.15:5173/ wss://10.0.0.15:5173/", $trackingScriptSrc), sprintf('connect-src \'self\' %1$s https://%2$s:5173/ wss://%2$s:5173/', $trackingScriptSrc, $ip),
sprintf("img-src 'self' data: 'nonce-%1s'", $nonce), sprintf("img-src 'self' data: 'nonce-%1s'", $nonce),
"manifest-src 'self'", "manifest-src 'self'",
]; ];
+1
View File
@@ -4,6 +4,7 @@
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "firefly-iii",
"hasInstallScript": true, "hasInstallScript": true,
"workspaces": [ "workspaces": [
"resources/assets/v1", "resources/assets/v1",
+1 -3
View File
@@ -23,8 +23,6 @@ import laravel from 'laravel-vite-plugin';
import manifestSRI from 'vite-plugin-manifest-sri'; import manifestSRI from 'vite-plugin-manifest-sri';
import * as fs from "fs"; import * as fs from "fs";
const host = '127.0.0.1';
function manualChunks(id) { function manualChunks(id) {
if (id.includes('node_modules')) { if (id.includes('node_modules')) {
return 'vendor'; return 'vendor';
@@ -84,7 +82,7 @@ export default defineConfig(({command, mode, isSsrBuild, isPreview}) => {
server: { server: {
cors: true, cors: true,
// make sure this IP matches the IP of the dev machine. // make sure this IP matches the IP of the dev machine.
origin: 'https://192.168.96.162:5173', origin: 'https://192.168.96.165:5173',
watch: { watch: {
usePolling: true, usePolling: true,
}, },