Sign in
Log inSign up

REST API, there's some way to block it from browser access?

Rafael Zomer Antunes's photo
Rafael Zomer Antunes
·May 6, 2016

Hello, i've a web system and a i need block the access of my url's by browser, for exemple:

if user tries to access example.com/test, he'll receive a error message. but, if a javascript file tries to access the same url by ajax the js will receive a content message (like hello world for example).

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct