Fix cors issues

This commit is contained in:
dragongoose 2023-07-29 21:26:38 -04:00
parent b0505ffde2
commit d7e9b663d5
No known key found for this signature in database
GPG Key ID: 01397EEC371CDAA5
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ export default {
// get rest of streams from api // get rest of streams from api
const resData: CategoryData = await getEndpoint( const resData: CategoryData = await getEndpoint(
`api/discover/${this.$route.params.game}/?cursor=${cursor}` `api/discover/${this.$route.params.game}?cursor=${cursor}`
).catch((err) => { ).catch((err) => {
throw err throw err
}) })

View File

@ -59,7 +59,7 @@ export default {
const res = await fetch( const res = await fetch(
`${this.protocol}${ `${this.protocol}${
import.meta.env.SAFETWITCH_BACKEND_DOMAIN import.meta.env.SAFETWITCH_BACKEND_DOMAIN
}/api/discover/?cursor=${cursor}` }/api/discover?cursor=${cursor}`
) )
if (!res.ok) { if (!res.ok) {
throw new Error('Failed to fetch data') throw new Error('Failed to fetch data')