diff --git a/standalone/package.json b/standalone/package.json index 718af4b..8229416 100644 --- a/standalone/package.json +++ b/standalone/package.json @@ -1,6 +1,6 @@ { "name": "app", - "version": "1.0.6", + "version": "1.0.7", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "dev": "bun run --watch src/index.js", diff --git a/standalone/public/index.js b/standalone/public/index.js index 598b0b0..d974066 100644 --- a/standalone/public/index.js +++ b/standalone/public/index.js @@ -116,10 +116,10 @@ createKeyBtn.addEventListener("click", async () => {

Make sure to copy your secret key — it's required to validate tokens and you won't be able to see it again.

- +
- +
`; @@ -196,7 +196,6 @@ const reloadKeysList = async () => { -
@@ -315,10 +314,10 @@ const reloadKeysList = async () => {

Make sure to copy your new secret key — it's required to validate tokens and you won't be able to see it again.

- +
- +
`; diff --git a/standalone/src/index.js b/standalone/src/index.js index 0024a5c..56e6b25 100644 --- a/standalone/src/index.js +++ b/standalone/src/index.js @@ -1,5 +1,6 @@ import { Elysia, file, NotFoundError } from "elysia"; import { staticPlugin } from "@elysiajs/static"; +import { cors } from '@elysiajs/cors' import { rateLimit } from "elysia-rate-limit"; import Cap from "@cap.js/server"; import crypto from "crypto"; @@ -270,6 +271,7 @@ const internal = new Elysia({ prefix: "/internal" }) }); const api = new Elysia({ prefix: "/:key" }) + .use(cors()) .use( rateLimit({ scoping: "scoped",