package ch.tkuhn.nanopub.monitor;

import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.protocol.http.WebApplication;
import org.apache.wicket.util.file.Folder;

public class MonitorApplication extends WebApplication {

	private Folder uploadFolder = null;

	@Override
	public Class<? extends WebPage> getHomePage() {
		return MonitorPage.class;
	}

	public void init() {
		super.init();
		uploadFolder = new Folder(System.getProperty("java.io.tmpdir"), "wicket-uploads");
		uploadFolder.mkdirs();
	}

	public Folder getUploadFolder() {
		return uploadFolder;
	}

}

@@ -28,16 +28,110 @@
 nitor;%0A%0A
+import org.apache.wicket.csp.CSPDirective;%0Aimport org.apache.wicket.csp.CSPDirectiveSrcValue;%0A
 import o
@@ -603,16 +603,58 @@
 dirs();%0A
+%09%09getCspSettings().blocking().disabled();%0A
 %09%7D%0A%0A%09pub

Solve CSP header problem