#Using Remix as a backend

1 messages · Page 1 of 1 (latest)

lost stirrup
#

Is there a way to make api called to my site as a backend? That way I can 'share' the backend with a React Native app for example?

red fog
lost stirrup
#

how can I make a regular post request to my site from outside? Do I not need any kind of safety verification etc.?

#

I'm not sure I quite understand @red fog

red fog
#

create a route, export an action function, send a POST to /url/of/the/route

lost stirrup
#

And security and whatnot has all got to be done by me in the action I assume, also cors wont be an issue will it

red fog
#

CORS is only an issue on browsers and if the domain is not the same

#

any security is up to you to implement it

lost stirrup
#

Right I understand now thanks so much!