Support the ongoing development of Laravel.io →
Authentication Security

I want to use Ember.js for my site, and don't need to open up the api at this point. But I do want to make sure that no one else can grab the data from the endpoints.

I would like to do this in a restful way, but I don't know if it's possible to do and still keep the data secure. As I understand it, there's no way to full protect access even with tokens, etc. But I'm probably missing something.

But could I simply make all my endpoints accessible only by the POST method, and include the csrf token (Form::token()) for the post requests and then on the server side use the CSRF filter for it to make sure it's not someone outside of my site grabbing the data? Would that secure it?

Or is there another, better way?

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.