#disable cors for some api endpoints

1 messages · Page 1 of 1 (latest)

ocean quarry
#

Hey do you mean for blitz rpc routes or for custom api routes?

lilac elbow
ocean quarry
# lilac elbow api folder in pages.

Is the api handler wrapped with the api exported by blitz-client?
If you are not using blitz auth then you can use it without the wrapper and I don't think the crsf mismatch error should occur.
Unless you want to disable it for some other reason?

lilac elbow
#

yes, wrapped with api() but same