-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exercise submission #4
base: master
Are you sure you want to change the base?
Conversation
if ( | ||
!isset($_SERVER['HTTP_X_REQUESTED_WITH']) | ||
|| strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) !== 'xmlhttprequest' | ||
) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add validation of a CSRF token?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As mentioned in the PR comment, I didn't do anything security related (that I would normally do in real life). Happy to add it at a later stage if you like
What I've done
Dockerfile
anddocker-compose
files to help with development (The schema is auto-imported when the database container gets created)Trade-offs
novalidate
attribute to showcase the server-side validation.What I would do differently in real-life
Demo URL
http://178.62.230.167/ running on DigitalOcean