lily — 11/4/2022, 4:32:57 PM

how do you get data in sveltekit server-side (in order to not get cors’d)

♥ 2 ↩ 0 💬 4 comments

comments

wynd:

fetch, server side cross origin requests don’t have the cors policy

11/4/2022, 4:40:34 PM
lily:

that’s what i’m doing but it does it client side for some reason

11/4/2022, 8:05:57 PM
wynd:

try using +page.server.js then pass down the data

11/5/2022, 3:20:09 PM
lily:

ok will do

11/5/2022, 3:25:10 PM