From 607cf77aaea62bc3fd7746fa76a864d88f4eb8ff Mon Sep 17 00:00:00 2001 From: Ignazio Bovo Date: Fri, 3 Nov 2023 10:11:53 +0100 Subject: [PATCH] Orion 303 final touches (#223) * feat: :sparkles: add CORS origins for atlas local testing * chore: :memo: adds 303 release notes --- CHANGELOG.md | 5 +++++ package.json | 2 +- src/utils/auth.ts | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ccc690fe..8bb2098e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# 3.0.3 +### Optimisation: +- Solves n+1 query issue on the `AssetResolver` `resolvedUrls` field resolver, by reusing `storageBagId` field if available. Resulting in faster query times and inpacting home page loading speed for front end application significantly. This fix involves only the `orion_graphql-server` microservice +### Misc +- adds `http://localhost:3000` and `http://127.0.0.1:3000` as authorized CORS origins for local front end testing # 3.0.2 ### Bug Fixes: - Store membership handles both as utf-8 string and raw bytes - [#4950](/~https://github.com/Joystream/joystream/pull/4950) diff --git a/package.json b/package.json index 38618f3b1..cd101bc85 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "orion", - "version": "3.0.2", + "version": "3.0.3", "engines": { "node": ">=16" }, diff --git a/src/utils/auth.ts b/src/utils/auth.ts index 213e879e2..0ed599b3c 100644 --- a/src/utils/auth.ts +++ b/src/utils/auth.ts @@ -232,6 +232,8 @@ export function getCorsOrigin(): (RegExp | string)[] | boolean { const corsOrigin = [ `https://${rootDomain}`, + `http://localhost:3000`, + `http://127.0.0.1:3000`, new RegExp(`https://.+\\.${rootDomain.replace('.', '\\.')}$`), ]