use a cors proxy to avoid rss feed fetch issues

This commit is contained in:
2025-10-30 22:50:52 +00:00
parent 572eae3306
commit 9ca320907e
3 changed files with 7 additions and 3 deletions

View File

@@ -1,3 +1,7 @@
# UpdaterWebLibrary # Updater Web Library
## If you are seeing this from the npm repository
you can view the source [here](https://git.emaker.limited/MicrocontrollerCD/UpdaterWebLibrary)
## Info
A library for the updater to be used by the user through an app or website A library for the updater to be used by the user through an app or website

View File

@@ -1,6 +1,6 @@
{ {
"name": "updaterweblibrary", "name": "updaterweblibrary",
"version": "1.0.4", "version": "1.0.5",
"description": "OTA Updater App frontend library", "description": "OTA Updater App frontend library",
"repository": { "repository": {
"type": "git", "type": "git",

View File

@@ -10,7 +10,7 @@ export default class Updater {
} }
private async getRawArchive(): Promise<string> { private async getRawArchive(): Promise<string> {
const res = await fetch(`${this.archiveURL}.${this.feedType}`, { const res = await fetch(`https://cors.emaker.limited/?url=${this.archiveURL}.${this.feedType}`, {
"mode": "cors" "mode": "cors"
}); });
const text = await res.text(); const text = await res.text();