From 1edf633aaee1e20f60a5af43b2e15681976f861b Mon Sep 17 00:00:00 2001 From: rdbsolutions Date: Wed, 9 Apr 2025 13:38:18 +0100 Subject: [PATCH 1/4] updated git ignore --- .gitignore | 2 -- 1 file changed, 2 deletions(-) diff --git a/.gitignore b/.gitignore index e329ead9..6ed0007b 100644 --- a/.gitignore +++ b/.gitignore @@ -36,5 +36,3 @@ pages/polling.js # dev apis to no include pages/api/endpoint/getaccounts_api.js - -pages/auth/signin2.js From 59eaf80af3a5c6f67f50bbd9390e3f0924e63937 Mon Sep 17 00:00:00 2001 From: rdbsolutions Date: Wed, 9 Apr 2025 13:58:00 +0100 Subject: [PATCH 2/4] signin in fix --- pages/auth/signin.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pages/auth/signin.js b/pages/auth/signin.js index 5882000b..747c76cb 100644 --- a/pages/auth/signin.js +++ b/pages/auth/signin.js @@ -182,7 +182,13 @@ export async function getServerSideProps(context) { return toUrlObj.toString(); // Return the full new URL as a string }; - formURL = appendParamsAndPathToNewUrl(context.query.callbackUrl, formURL); + typeof context.query.callbackUrl != "undefined" && + (formURL = appendParamsAndPathToNewUrl( + context.query.callbackUrl, + formURL + )); + + //formURL = appendParamsAndPathToNewUrl(context.query.callbackUrl, formURL); const url = new URL(formURL); // base URL From 8f9652003ef8a176ea4b24eccfa8a88259b3e80a Mon Sep 17 00:00:00 2001 From: rdbsolutions Date: Mon, 14 Apr 2025 15:00:14 +0100 Subject: [PATCH 3/4] Put CSP in to headers and not Meta tags --- components/tracking/index.js | 5 ++- middleware.js | 77 ++++++++++++++++++++++++++++++++++++ package.json | 4 +- pages/_document.js | 12 ++++-- 4 files changed, 92 insertions(+), 6 deletions(-) create mode 100644 middleware.js diff --git a/components/tracking/index.js b/components/tracking/index.js index 2b1e026d..1bdbf3b4 100644 --- a/components/tracking/index.js +++ b/components/tracking/index.js @@ -6,11 +6,13 @@ export const Tracking = ({ googleTagManagerID, nonce, cookieObj }) => { return (