Fix cors issues
This commit is contained in:
parent
b0505ffde2
commit
d7e9b663d5
@ -45,7 +45,7 @@ export default {
|
||||
|
||||
// get rest of streams from api
|
||||
const resData: CategoryData = await getEndpoint(
|
||||
`api/discover/${this.$route.params.game}/?cursor=${cursor}`
|
||||
`api/discover/${this.$route.params.game}?cursor=${cursor}`
|
||||
).catch((err) => {
|
||||
throw err
|
||||
})
|
||||
|
@ -59,7 +59,7 @@ export default {
|
||||
const res = await fetch(
|
||||
`${this.protocol}${
|
||||
import.meta.env.SAFETWITCH_BACKEND_DOMAIN
|
||||
}/api/discover/?cursor=${cursor}`
|
||||
}/api/discover?cursor=${cursor}`
|
||||
)
|
||||
if (!res.ok) {
|
||||
throw new Error('Failed to fetch data')
|
||||
|
Loading…
x
Reference in New Issue
Block a user