From a3d6dd5852c39e75b2bc44212a5fa701dcf48d76 Mon Sep 17 00:00:00 2001
From: Colby Blair
Date: Sun, 1 Oct 2023 12:54:39 -0700
Subject: [PATCH 01/26] 0.1.1
---
package-lock.json | 2 +-
package.json | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index be91e61..9be9f5c 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "image_resize",
- "version": "0.1.0",
+ "version": "0.1.1",
"lockfileVersion": 2,
"requires": true,
"packages": {
diff --git a/package.json b/package.json
index a4fa957..96b19f8 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "image_resize",
- "version": "0.1.0",
+ "version": "0.1.1",
"private": true,
"scripts": {
"dev": "next dev",
From 40c34e4d48a547fc19bed009a6d65e939ff98a6b Mon Sep 17 00:00:00 2001
From: Colby Blair
Date: Sun, 1 Oct 2023 12:55:17 -0700
Subject: [PATCH 02/26] 0.1.2
---
package-lock.json | 2 +-
package.json | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index 9be9f5c..241413b 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "image_resize",
- "version": "0.1.1",
+ "version": "0.1.2",
"lockfileVersion": 2,
"requires": true,
"packages": {
diff --git a/package.json b/package.json
index 96b19f8..182c53e 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "image_resize",
- "version": "0.1.1",
+ "version": "0.1.2",
"private": true,
"scripts": {
"dev": "next dev",
From 91ceb385241277325d70dce6b76b15c8455442ef Mon Sep 17 00:00:00 2001
From: Colby Blair
Date: Sun, 1 Oct 2023 12:58:25 -0700
Subject: [PATCH 03/26] eslint cleanup
---
pages/resize.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pages/resize.tsx b/pages/resize.tsx
index 3c5cc5d..60c42ce 100644
--- a/pages/resize.tsx
+++ b/pages/resize.tsx
@@ -28,7 +28,7 @@ export default function Home() {
return (
- Resize for "{imageUrl}", blur:
+ Resize for {imageUrl}, blur:
{image &&
Date: Sun, 1 Oct 2023 12:58:30 -0700
Subject: [PATCH 04/26] 0.1.3
---
package-lock.json | 2 +-
package.json | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index 241413b..4266db5 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "image_resize",
- "version": "0.1.2",
+ "version": "0.1.3",
"lockfileVersion": 2,
"requires": true,
"packages": {
diff --git a/package.json b/package.json
index 182c53e..d80a333 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "image_resize",
- "version": "0.1.2",
+ "version": "0.1.3",
"private": true,
"scripts": {
"dev": "next dev",
From c44a952541c6d4fd82b0d70c46b766ea2d3692b1 Mon Sep 17 00:00:00 2001
From: Colby Blair
Date: Sun, 1 Oct 2023 13:03:06 -0700
Subject: [PATCH 05/26] eslint cleanup
---
pages/api/resize.ts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pages/api/resize.ts b/pages/api/resize.ts
index b63a38f..359542a 100644
--- a/pages/api/resize.ts
+++ b/pages/api/resize.ts
@@ -6,7 +6,7 @@ export default async function handler(
res: NextApiResponse
) {
const image_url = req.body.image_url || "";
- let data;
+ let data:any;
let status = 200;
console.time('fetch');
@@ -41,7 +41,7 @@ export default async function handler(
console.log(`Done with image "${image_url}".`);
} catch (error) {
status = 500;
- data = error?.message;
+ data = {};
// console.error({error});
}
From b3614e04ce0f36e57928ee34dee495c059cf5e6d Mon Sep 17 00:00:00 2001
From: Colby Blair
Date: Sun, 1 Oct 2023 13:03:10 -0700
Subject: [PATCH 06/26] 0.1.4
---
package-lock.json | 2 +-
package.json | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index 4266db5..4ae3c9d 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "image_resize",
- "version": "0.1.3",
+ "version": "0.1.4",
"lockfileVersion": 2,
"requires": true,
"packages": {
diff --git a/package.json b/package.json
index d80a333..78d0563 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "image_resize",
- "version": "0.1.3",
+ "version": "0.1.4",
"private": true,
"scripts": {
"dev": "next dev",
From 403e929cfa12bc7e9f49f6be3c7c6610398230fb Mon Sep 17 00:00:00 2001
From: Colby Blair
Date: Sun, 1 Oct 2023 13:05:45 -0700
Subject: [PATCH 07/26] 0.1.5
---
package-lock.json | 2 +-
package.json | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index 4ae3c9d..a531248 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "image_resize",
- "version": "0.1.4",
+ "version": "0.1.5",
"lockfileVersion": 2,
"requires": true,
"packages": {
diff --git a/package.json b/package.json
index 78d0563..a5aa095 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "image_resize",
- "version": "0.1.4",
+ "version": "0.1.5",
"private": true,
"scripts": {
"dev": "next dev",
From 6fcce975a834b7804aa0ea1ad0d89775a248c38b Mon Sep 17 00:00:00 2001
From: Colby Blair
Date: Sun, 1 Oct 2023 13:09:58 -0700
Subject: [PATCH 08/26] eslint cleanup
---
pages/resize.tsx | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/pages/resize.tsx b/pages/resize.tsx
index 60c42ce..c724408 100644
--- a/pages/resize.tsx
+++ b/pages/resize.tsx
@@ -30,7 +30,8 @@ export default function Home() {
Resize for {imageUrl}, blur:
{image &&
- Full image using blur as placeholder:
{image &&
- Full image:
{image &&
-
Date: Sun, 1 Oct 2023 13:10:00 -0700
Subject: [PATCH 09/26] 0.1.6
---
package-lock.json | 2 +-
package.json | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index a531248..58f90c5 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "image_resize",
- "version": "0.1.5",
+ "version": "0.1.6",
"lockfileVersion": 2,
"requires": true,
"packages": {
diff --git a/package.json b/package.json
index a5aa095..b3c87b0 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "image_resize",
- "version": "0.1.5",
+ "version": "0.1.6",
"private": true,
"scripts": {
"dev": "next dev",
From 766e703ff12e99c26a666f76c558e47345e7f822 Mon Sep 17 00:00:00 2001
From: Colby Blair
Date: Sun, 1 Oct 2023 13:13:26 -0700
Subject: [PATCH 10/26] 0.1.7
---
package-lock.json | 2 +-
package.json | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index 58f90c5..42d54b0 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "image_resize",
- "version": "0.1.6",
+ "version": "0.1.7",
"lockfileVersion": 2,
"requires": true,
"packages": {
diff --git a/package.json b/package.json
index b3c87b0..0564adc 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "image_resize",
- "version": "0.1.6",
+ "version": "0.1.7",
"private": true,
"scripts": {
"dev": "next dev",
From 7eb711130d4c94362f101171382e21c3bf2e56c5 Mon Sep 17 00:00:00 2001
From: Colby Blair
Date: Sun, 1 Oct 2023 13:13:42 -0700
Subject: [PATCH 11/26] 0.1.8
---
package-lock.json | 2 +-
package.json | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index 42d54b0..c4e97db 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "image_resize",
- "version": "0.1.7",
+ "version": "0.1.8",
"lockfileVersion": 2,
"requires": true,
"packages": {
diff --git a/package.json b/package.json
index 0564adc..b05d907 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "image_resize",
- "version": "0.1.7",
+ "version": "0.1.8",
"private": true,
"scripts": {
"dev": "next dev",
From b99cf074538d81feb21f1c5ed57e4a6551d58092 Mon Sep 17 00:00:00 2001
From: Colby Blair
Date: Sun, 1 Oct 2023 13:49:24 -0700
Subject: [PATCH 12/26] eslint cleanup
---
pages/resize.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pages/resize.tsx b/pages/resize.tsx
index c724408..be36c15 100644
--- a/pages/resize.tsx
+++ b/pages/resize.tsx
@@ -7,7 +7,7 @@ import { useEffect, useState } from "react";
export default function Home() {
const router = useRouter();
const {image_url: imageUrl} = router.query || "";
- const [image, setImage] = useState(null)
+ const [image, setImage] = useState("")
useEffect(() => {
if (imageUrl) {
From 0ffccadf2ae479708530be058e180773d1df7410 Mon Sep 17 00:00:00 2001
From: Colby Blair
Date: Sun, 1 Oct 2023 13:49:31 -0700
Subject: [PATCH 13/26] 0.1.9
---
package-lock.json | 2 +-
package.json | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index c4e97db..5135c6a 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "image_resize",
- "version": "0.1.8",
+ "version": "0.1.9",
"lockfileVersion": 2,
"requires": true,
"packages": {
diff --git a/package.json b/package.json
index b05d907..279bba2 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "image_resize",
- "version": "0.1.8",
+ "version": "0.1.9",
"private": true,
"scripts": {
"dev": "next dev",
From 2f2e9793cf9f729879a22330e950246057bdc994 Mon Sep 17 00:00:00 2001
From: Colby Blair
Date: Sun, 1 Oct 2023 13:59:06 -0700
Subject: [PATCH 14/26] eslint updates
---
.eslintrc.json | 3 ++-
package-lock.json | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/.eslintrc.json b/.eslintrc.json
index bffb357..2672d8a 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -1,3 +1,4 @@
{
- "extends": "next/core-web-vitals"
+ "extends": "next/core-web-vitals",
+ "ignorePatterns": ["node_modules/**"],
}
diff --git a/package-lock.json b/package-lock.json
index 5135c6a..ec50803 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -6,7 +6,7 @@
"packages": {
"": {
"name": "image_resize",
- "version": "0.1.0",
+ "version": "0.1.9",
"dependencies": {
"lqip-modern": "^2.0.0",
"next": "latest",
From 6958c80fdfacca8da271c664eaee3934369209d8 Mon Sep 17 00:00:00 2001
From: Colby Blair
Date: Sun, 1 Oct 2023 13:59:12 -0700
Subject: [PATCH 15/26] 0.1.10
---
package-lock.json | 2 +-
package.json | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index ec50803..f494903 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "image_resize",
- "version": "0.1.9",
+ "version": "0.1.10",
"lockfileVersion": 2,
"requires": true,
"packages": {
diff --git a/package.json b/package.json
index 279bba2..1fea390 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "image_resize",
- "version": "0.1.9",
+ "version": "0.1.10",
"private": true,
"scripts": {
"dev": "next dev",
From 630328fda41424926ff964c3a5cf5ea763cb6701 Mon Sep 17 00:00:00 2001
From: Colby Blair
Date: Sun, 1 Oct 2023 14:00:03 -0700
Subject: [PATCH 16/26] eslint updates
---
.eslintrc.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.eslintrc.json b/.eslintrc.json
index 2672d8a..4ef17a4 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -1,4 +1,4 @@
{
"extends": "next/core-web-vitals",
- "ignorePatterns": ["node_modules/**"],
+ "ignorePatterns": ["node_modules/**"]
}
From edb800babf6ef6a3a9b602ac66666a47f3fcd487 Mon Sep 17 00:00:00 2001
From: Colby Blair
Date: Sun, 1 Oct 2023 14:00:46 -0700
Subject: [PATCH 17/26] 0.1.11
---
package-lock.json | 2 +-
package.json | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index f494903..c0a1581 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "image_resize",
- "version": "0.1.10",
+ "version": "0.1.11",
"lockfileVersion": 2,
"requires": true,
"packages": {
diff --git a/package.json b/package.json
index 1fea390..792c811 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "image_resize",
- "version": "0.1.10",
+ "version": "0.1.11",
"private": true,
"scripts": {
"dev": "next dev",
From e9561e87fcbbe6615f599950ba7af094483cfd44 Mon Sep 17 00:00:00 2001
From: Colby Blair
Date: Sun, 1 Oct 2023 14:03:37 -0700
Subject: [PATCH 18/26] 0.1.12
---
package-lock.json | 2 +-
package.json | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index c0a1581..ed87dfb 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "image_resize",
- "version": "0.1.11",
+ "version": "0.1.12",
"lockfileVersion": 2,
"requires": true,
"packages": {
diff --git a/package.json b/package.json
index 792c811..718add2 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "image_resize",
- "version": "0.1.11",
+ "version": "0.1.12",
"private": true,
"scripts": {
"dev": "next dev",
From 098e5ab94fc2a1d385ce42faeb91f585411a466e Mon Sep 17 00:00:00 2001
From: Colby Blair
Date: Sun, 1 Oct 2023 14:04:01 -0700
Subject: [PATCH 19/26] 0.1.13
---
package-lock.json | 4 ++--
package.json | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index ed87dfb..7d5a8a3 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "image_resize",
- "version": "0.1.12",
+ "version": "0.1.13",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "image_resize",
- "version": "0.1.9",
+ "version": "0.1.13",
"dependencies": {
"lqip-modern": "^2.0.0",
"next": "latest",
diff --git a/package.json b/package.json
index 718add2..5a50a07 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "image_resize",
- "version": "0.1.12",
+ "version": "0.1.13",
"private": true,
"scripts": {
"dev": "next dev",
From 6a93835936d0bcfb765fd771fb92d70f18faf260 Mon Sep 17 00:00:00 2001
From: Colby Blair
Date: Sun, 1 Oct 2023 14:11:14 -0700
Subject: [PATCH 20/26] eslint cleanup
---
pages/resize.tsx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pages/resize.tsx b/pages/resize.tsx
index be36c15..7e7be24 100644
--- a/pages/resize.tsx
+++ b/pages/resize.tsx
@@ -6,7 +6,7 @@ import { useEffect, useState } from "react";
export default function Home() {
const router = useRouter();
- const {image_url: imageUrl} = router.query || "";
+ const {image_url: imageUrl} = `${router.query}`;
const [image, setImage] = useState("")
useEffect(() => {
@@ -41,7 +41,7 @@ export default function Home() {
{image &&
Date: Sun, 1 Oct 2023 14:11:16 -0700
Subject: [PATCH 21/26] 0.1.14
---
package-lock.json | 4 ++--
package.json | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index 7d5a8a3..dee9d84 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "image_resize",
- "version": "0.1.13",
+ "version": "0.1.14",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "image_resize",
- "version": "0.1.13",
+ "version": "0.1.14",
"dependencies": {
"lqip-modern": "^2.0.0",
"next": "latest",
diff --git a/package.json b/package.json
index 5a50a07..6997c0d 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "image_resize",
- "version": "0.1.13",
+ "version": "0.1.14",
"private": true,
"scripts": {
"dev": "next dev",
From 7101f056b33ced0f8271b9856aed681d2da46e24 Mon Sep 17 00:00:00 2001
From: Colby Blair
Date: Sun, 1 Oct 2023 14:17:26 -0700
Subject: [PATCH 22/26] eslint cleanup
---
pages/resize.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pages/resize.tsx b/pages/resize.tsx
index 7e7be24..4e28ed6 100644
--- a/pages/resize.tsx
+++ b/pages/resize.tsx
@@ -6,7 +6,7 @@ import { useEffect, useState } from "react";
export default function Home() {
const router = useRouter();
- const {image_url: imageUrl} = `${router.query}`;
+ const imageUrl = `${router.query.image_url}`;
const [image, setImage] = useState("")
useEffect(() => {
From ab30d00ed9f2c1033f20274bec46ecf14630fe93 Mon Sep 17 00:00:00 2001
From: Colby Blair
Date: Sun, 1 Oct 2023 14:17:32 -0700
Subject: [PATCH 23/26] 0.1.15
---
package-lock.json | 4 ++--
package.json | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index dee9d84..7db95a1 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "image_resize",
- "version": "0.1.14",
+ "version": "0.1.15",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "image_resize",
- "version": "0.1.14",
+ "version": "0.1.15",
"dependencies": {
"lqip-modern": "^2.0.0",
"next": "latest",
diff --git a/package.json b/package.json
index 6997c0d..2bac217 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "image_resize",
- "version": "0.1.14",
+ "version": "0.1.15",
"private": true,
"scripts": {
"dev": "next dev",
From 62f4c4785f5d7e0950d085c5c46755d525f8fb66 Mon Sep 17 00:00:00 2001
From: Colby Blair
Date: Sun, 1 Oct 2023 14:28:26 -0700
Subject: [PATCH 24/26] 0.1.16
---
package-lock.json | 4 ++--
package.json | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index 7db95a1..6541c8a 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "image_resize",
- "version": "0.1.15",
+ "version": "0.1.16",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "image_resize",
- "version": "0.1.15",
+ "version": "0.1.16",
"dependencies": {
"lqip-modern": "^2.0.0",
"next": "latest",
diff --git a/package.json b/package.json
index 2bac217..f53a398 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "image_resize",
- "version": "0.1.15",
+ "version": "0.1.16",
"private": true,
"scripts": {
"dev": "next dev",
From 12198b71a836845e64b6359aa90295282fa2503f Mon Sep 17 00:00:00 2001
From: Colby Blair
Date: Fri, 13 Oct 2023 19:53:31 -0700
Subject: [PATCH 25/26] CORS headers to allow other SS domains
---
next.config.js | 15 +++++++++++++++
package-lock.json | 4 ++--
package.json | 2 +-
3 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/next.config.js b/next.config.js
index 13985ec..b2209e4 100644
--- a/next.config.js
+++ b/next.config.js
@@ -10,6 +10,21 @@ const nextConfig = {
},
],
},
+ async headers() {
+ return [
+ {
+ // matching all API routes
+ source: "/api/:path*",
+ headers: [
+ // CORS - enable for all soulstealer domains.
+ { key: "Access-Control-Allow-Credentials", value: "true" },
+ { key: "Access-Control-Allow-Origin", value: "*.soulstealer.io" }, // replace this your actual origin
+ { key: "Access-Control-Allow-Methods", value: "GET,DELETE,PATCH,POST,PUT" },
+ { key: "Access-Control-Allow-Headers", value: "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version" },
+ ]
+ }
+ ]
+ }
}
module.exports = nextConfig
diff --git a/package-lock.json b/package-lock.json
index 6541c8a..2df63b8 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "image_resize",
- "version": "0.1.16",
+ "version": "0.1.36",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "image_resize",
- "version": "0.1.16",
+ "version": "0.1.36",
"dependencies": {
"lqip-modern": "^2.0.0",
"next": "latest",
diff --git a/package.json b/package.json
index f53a398..ef3ea5e 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "image_resize",
- "version": "0.1.16",
+ "version": "0.1.36",
"private": true,
"scripts": {
"dev": "next dev",
From 55b877d34e4a07f7a01332cd183881af1586a234 Mon Sep 17 00:00:00 2001
From: Colby Blair
Date: Sat, 14 Oct 2023 19:15:49 -0700
Subject: [PATCH 26/26] CORS headers to allow all domains
---
next.config.js | 2 +-
package-lock.json | 4 ++--
package.json | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/next.config.js b/next.config.js
index b2209e4..1119c52 100644
--- a/next.config.js
+++ b/next.config.js
@@ -18,7 +18,7 @@ const nextConfig = {
headers: [
// CORS - enable for all soulstealer domains.
{ key: "Access-Control-Allow-Credentials", value: "true" },
- { key: "Access-Control-Allow-Origin", value: "*.soulstealer.io" }, // replace this your actual origin
+ { key: "Access-Control-Allow-Origin", value: "*" },
{ key: "Access-Control-Allow-Methods", value: "GET,DELETE,PATCH,POST,PUT" },
{ key: "Access-Control-Allow-Headers", value: "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version" },
]
diff --git a/package-lock.json b/package-lock.json
index 2df63b8..c2a2d51 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "image_resize",
- "version": "0.1.36",
+ "version": "0.1.38",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "image_resize",
- "version": "0.1.36",
+ "version": "0.1.38",
"dependencies": {
"lqip-modern": "^2.0.0",
"next": "latest",
diff --git a/package.json b/package.json
index ef3ea5e..8c1d937 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "image_resize",
- "version": "0.1.36",
+ "version": "0.1.38",
"private": true,
"scripts": {
"dev": "next dev",