fix cors error on watch
This commit is contained in:
@@ -27,7 +27,7 @@ export default function RecentWatch() {
|
|||||||
const [ errorState, setErrorState ] = useState<string>("");
|
const [ errorState, setErrorState ] = useState<string>("");
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
fetch("https://watch.alexav.gg/api/trpc/watchItem.getLatest", {
|
fetch("https://watch-cors.alexav.gg", {
|
||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
.then(async (res) => {
|
.then(async (res) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user