Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialZach Allan
19,452 PointsWhy do I need to run a web server (MAMP) to play video and audio files locally that come from a remote source?
The video and audio files are working just fine running them locally. I don't see why I have to run a web server. Nick Pettit mentioned something about same-origin policy. What does this mean?
1 Answer
Thomas King
15,197 PointsHere is the article that discusses this guideline from the Mozilla Developer Network: https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy
The PHP Development track goes into some of the more common CSRF attacks that can happen to websites. PHP Form Validation is discussed as one strategy to implement to prevent these malicious attacks.
Thomas King
15,197 PointsThomas King
15,197 PointsMore is said in the article as it pertains to HTML embedding and JavaScript APIs.
Zach Allan
19,452 PointsZach Allan
19,452 PointsThanks Thomas! Appreciate it.