-1

How can I prevent the client calling meteor calls directly from the console of the browser via developer tools?

o2kevin
  • 707
  • 1
  • 5
  • 20

2 Answers2

0

You can't. At least you can't do it in all browsers, so you can't rely on it.

Peppe L-G
  • 7,351
  • 2
  • 25
  • 50
0

You could do this (it may help, but not sur that it will work on all browsers as Peppe LG says):

Client side code:

Object.defineProperty(console, '_commandLineAPI',
    { get : function() { throw 'Nooo!' } })

From: How does Facebook disable the browser's integrated Developer Tools?

Community
  • 1
  • 1
Tarang
  • 75,157
  • 39
  • 215
  • 276