Skip to content

Commit

Permalink
Orion 303 final touches (#223)
Browse files Browse the repository at this point in the history
* feat: ✨ add CORS origins for atlas local testing

* chore: 📝 adds 303 release notes
  • Loading branch information
Ignazio Bovo authored Nov 3, 2023
1 parent af90fc1 commit 607cf77
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "orion",
"version": "3.0.2",
"version": "3.0.3",
"engines": {
"node": ">=16"
},
Expand Down
2 changes: 2 additions & 0 deletions src/utils/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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('.', '\\.')}$`),
]

Expand Down

0 comments on commit 607cf77

Please sign in to comment.