shirosaki-hana
c1d4b4daa3
Fix: Resolve Realm CORS Violation for Node.js Hosted Version
...
Problem:
The Node.js hosted version of RisuAI encountered an issue where it failed to fetch data from the Risu Realm server when accessed remotely.
RisuAI's frontend directly fetches data from the Realm server (e.g., sv.risuai.xyz). While the official web version did not exhibit CORS errors (potentially due to same-origin deployment or specific server-side CORS configurations), running the Node.js version on a self-hosted server and accessing it remotely resulted in browser CORS policy violations.
Solution:
The fix involves detecting when the frontend runs in the Node.js host environment.
When this environment is detected, instead of requesting Realm data directly from the external server (sv.risuai.xyz), the frontend now directs the request to a new proxy endpoint (`/hub-proxy/*`) on its own backend server.
The backend proxy then fetches the required data (including JSON and images) from the actual Realm server, correctly handles content types and compression, and relays the response back to the frontend.
This ensures that, from the browser's perspective, the frontend is communicating with its same-origin backend, effectively bypassing browser CORS restrictions and resolving the data fetching issue.
2025-04-10 17:16:21 +09:00
Kwaroran
ed2957fc50
Upgrade translator playground
2025-02-25 04:36:58 +09:00
Kwaroran
1b171cab66
Update version, gemini models, and new progress dialoge, and charxjpeg
2025-02-06 09:48:55 +09:00
Kwaroran
243984d788
Add CharX-Jpeg
2025-02-02 07:49:08 +09:00
Kwaroran
59d33a9c8b
fix: enhance content-type handling in downloadRisuHub function
2025-01-06 23:13:42 +09:00
Kwaroran
cd092a5a01
feat: add translation feature and ban character set functionality
2024-12-29 04:03:21 +09:00
Kwaroran
5174082796
Add Gemini related features
2024-12-12 08:38:33 +09:00
Kwaroran
dd424d851a
Refactor image handling in character import/export functions to remove unnecessary reencoding
2024-12-10 22:47:11 +09:00
kwaroran
c454f8df2d
Update character card export to convert image data before writing
2024-12-08 18:46:10 +09:00
kwaroran
35ab2951d2
Update character card validation to check 'spec' instead of version
2024-12-07 22:27:24 +09:00
kwaroran
9ac91190f9
bump version
2024-12-03 21:16:50 +09:00
kwaroran
d12ab8ead1
Add lightningRealmImport
2024-11-30 02:17:03 +09:00
kwaroran
7bad240d85
Refactor character card processing by consolidating logic into convertCharbook function
2024-11-30 01:30:06 +09:00
kwaroran
4f69bb8880
Add loggen related stuff and fix bugs
2024-11-05 20:15:17 +09:00
kwaroran
efbda2333d
Change saving
2024-11-02 01:46:21 +09:00
kwaroran
d487bf298b
Add drag & drop import
2024-10-30 12:54:10 +09:00
kwaroran
a1632daca0
Refactor characterCards.ts to handle selective logic for importing character card specs
2024-10-30 12:44:23 +09:00
kwaroran
2d3d2f92cd
Upgrade Compatibility
2024-10-30 03:11:37 +09:00
kwaroran
da907f4fc2
Move DBState to stores
2024-10-26 21:17:46 +09:00
kwaroran
ffa6308ca3
change globalApi path
2024-10-26 20:40:40 +09:00
kwaroran
e255199fcc
Change setDatabase and getDatabase to accessing dbState
2024-10-25 19:11:41 +09:00
kwaroran
0f6246bef6
fix structuredclone
2024-10-25 18:11:00 +09:00
kwaroran
b3fddb814e
Migrate all DataBase to DBState
2024-10-24 01:59:57 +09:00
kwaroran
2044d9b63b
Change DataBase inside svelte to DBState for performance
2024-10-23 23:46:32 +09:00
kwaroran
c7330719ad
Migrate to svelte 5
2024-10-23 02:31:37 +09:00
ModMapper
95f3bfdd4b
Removed the hash after import to prevent the same character from being imported again upon refresh.
2024-10-22 20:47:27 +09:00
ModMapper
e0edf74b46
Fixed the bug where the character list was not updating in certain situations after importing a URL.
2024-10-22 20:46:00 +09:00
kwaroran
5c61a870e1
Fix offspec
2024-10-12 00:46:34 +09:00
ModMapper
d48d3182cf
Add File Import URL
2024-10-10 01:57:45 +09:00
kwaroran
a66f1664ef
Add deep linking
2024-10-09 21:19:58 +09:00
kwaroran
833c2ad39c
Fix nullish operators
2024-10-09 21:06:54 +09:00
kwaroran
d3500ce55c
Add file assosiation for Tauri
2024-10-09 21:06:22 +09:00
kwaroran
e85ecef894
Fix lorebook import broken
2024-09-29 20:23:57 +09:00
kwaroran
32d6c02130
fix chara meta replacing ccv3
2024-09-18 22:30:37 +09:00
kwaroran
f66ae59d70
Improve beta mobile accessibility
2024-09-11 09:25:49 +09:00
kwaroran
3ae2c11ca4
Add PWA support
2024-09-10 22:09:58 +09:00
kwaroran
2ab318188e
Basic Lite version
2024-08-12 23:48:14 +09:00
kwaroran
3f85bd4ee7
Add off spec card import
2024-08-05 17:22:04 +09:00
kwaroran
deab7dbb4a
fix defaultvars
2024-07-06 10:03:21 +09:00
kwaroran
21618b14c3
Add default vars to export
2024-07-06 00:49:05 +09:00
kwaroran
a5583ebeec
refactor: Update file extensions for assets in characterCards.ts
2024-06-27 19:06:35 +09:00
kwaroran
8a8befecda
remove v1 fallback to use oldtavernchar fallback
2024-06-18 22:20:00 +09:00
kwaroran
c5f841247a
refactor: Fix bug in characterCards.ts
2024-06-10 16:18:36 +09:00
kwaroran
ccb3d94ef7
feat: add hub additional html
2024-06-10 16:11:49 +09:00
kwaroran
b7d436d443
refactor: Update characterCards.ts
2024-06-10 16:08:34 +09:00
kwaroran
ec97e17ad5
chore: Update characterCards.ts to improve asset path handling
2024-06-09 20:04:34 +09:00
kwaroran
2d57dde4a8
add alert warning in charx
2024-06-09 19:41:51 +09:00
kwaroran
a4ac170f5b
feat: add forked
2024-06-04 12:13:33 +09:00
kwaroran
1e4d372f3b
refactor: improve charx loading
2024-06-03 22:13:24 +09:00
kwaroran
ed49f72c1b
fix: Fix readedChara version pointing number instead of string
2024-06-03 18:43:20 +09:00