Which is better to do client side or server side validation?  In our situation we are using    jQuery and MVC.   JSON data to pass between our View and Controller.     A lot of the validation I do is validating data as users enter it. For example I...
I am using Backbone.js and the Tornado web server.  The standard behavior for receiving collection data in Backbone is to send as a JSON Array.  On the other hand, Tornado's standard behavior is to not allow JSON Array's due to the followin...
I'm trying to implement JWT in my authentication system and I have a few questions. To store the token, I could use cookies but it's also possible to use localStorage or sessionStorage.  Which would be the best choice?   I have read that JW...
Imagine a space shooter with a scrolling level. What methods are there for preventing a malicious player from modifying the game to their benefit? Things he could do that are hard to limit server-side is auto-aiming, peeking outside the visible are...
While researching the issue of JSON vs XML, I came across this question.  Now one of the reasons to prefer JSON was listed as the ease of conversion in Javascript, namely with the eval().  Now this immediately struck me as potentially problematic f...
I'm trying to figure out a good way to prevent bots from submitting my form, while keeping the process simple. I've read several great ideas, but I thought about adding a confirm option when the form is submitted. The user clicks submit and...
I am using a third party library which spawns a raw XMLHttpRequest with new XMLHttpRequest.  This bypasses my CSRF protection and gets shot down by my rails server.   Is there a way to globally add a predefined CSRF token ($('meta[name=csrf-token...
I have a Java Applet inserted on a simple HTML page located at http://localhost:8080/index.html:  <applet id="applet" code="SomeCode.class" archive="lib.jar" Width="1" Height="1"></applet>   The Jav...
I'm making a RESTful web service call in my JavaScript page and get the following warning:  "This page is accessing information that is not under its control.  This poses a security risk.  Do you want to continue?"  Now I've read up o...
I'm trying to embed a youtube video on to my page once the user gives the link to the video.  <iframe width=\'560\' height=\'315\' src='http://www.youtube.com/watch?v=<video id>&amp;output=embed' frameborder=\...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.