Content Security Policy

Поділитися
Вставка
  • Опубліковано 7 лис 2024

КОМЕНТАРІ • 68

  • @colindante5164
    @colindante5164 3 роки тому

    Its 2021 and this content never gets old. Thankyou for posting this. ))

  • @arihantjain8347
    @arihantjain8347 2 роки тому +1

    Very nice, crisp and to the point.
    Very helpful, Thanks!

  • @rajani123yt
    @rajani123yt 3 роки тому

    Concepts are explained nicely with examples

  • @이승민-t1o
    @이승민-t1o 3 роки тому +5

    Your explanations are so good! Thank you! I learned a lot 😃

  • @PeachGB
    @PeachGB 3 роки тому +1

    i'm a simple man, i hear "bears" i like

  • @santiagoramirez874
    @santiagoramirez874 3 роки тому

    Excelent, just what i needed, allow javascript only from two external sources

  • @codedynamics1
    @codedynamics1 3 роки тому

    Been searching for this Kyle. Very important subject. I understand it a bit better now, thank you !

  • @YaseenMohammedofficial
    @YaseenMohammedofficial 4 роки тому +1

    This is good for basic learners... Thanks

  • @klu.official
    @klu.official 9 років тому +3

    These videos are really helpful. Thanks for uploading and please keep up the good work.

  • @basedonprinciple
    @basedonprinciple 4 роки тому +1

    Super helpful and exactly what I was looking for to understand CSP

  • @jiayinglim657
    @jiayinglim657 9 років тому +2

    thanks for the sharing. I look forward to learning more.

  • @grahamschuckman3483
    @grahamschuckman3483 2 роки тому

    Fantastic tutorial, wish I could give a double thumbs-up!

  • @miketyson5929
    @miketyson5929 9 років тому +2

    Not relevant to topic, but which program do you use to record these awesome videos ?

    • @ACPixel
      @ACPixel 8 років тому

      I think it's called screen flow

  • @wolfdroid8286
    @wolfdroid8286 5 років тому

    nice video... gained lot of knowledge . surely going to share your video ...hmmmm one thing i want to ask is if a site has implemented csp and script src is set to self ,,, along with that 3rd party sites are mentioned for executing their scripts , also used 'unsafe inline ' in the script-src tag. so how in this case an attacker or hacker can bypass csp... by taking advantage of unsafe inline

  • @domaincontroller
    @domaincontroller 4 роки тому +1

    npm, sanitize-html 04:05 lodash 04:52 CSP 05:25 send an http header to the browser to tell to enable this CSP 07:40 CSS

  • @jakubsukowski1040
    @jakubsukowski1040 3 роки тому +1

    How do you use require in frontend javascript? I'd love to know!

  • @chuckyyes
    @chuckyyes 3 роки тому +1

    it's that easy to install security?

  • @OriginalEXE
    @OriginalEXE 9 років тому +1

    Hi Kyle,
    this is new to me, I did not know about the content security policy. I have a question though, won't this block certain browser extensions? I imagine that could annoy some users.

    • @kylerobinsonyoung
      @kylerobinsonyoung  9 років тому +1

      +Ante Šepić I'm not too knowledgeable about writing browser extensions but I believe they can define their own CSP: developer.chrome.com/extensions/contentSecurityPolicy So if the extension action is getting blocked by a CSP, that extension probably shouldn't be doing that action.
      Also a user can choose to disable the CSP in their browser too if desired. It's really a protection mechanism for the users in case a website they are visiting has been hijacked. The website developer defines a CSP to inform the user about the things they can trust. So why you could easily disable CSP in your browser, you wouldn't necessarily want to.

    • @OriginalEXE
      @OriginalEXE 9 років тому +1

      +Kyle Robinson Young Thanks, that makes sense.

  • @eelapata
    @eelapata 4 роки тому

    Very nice and well explained..

  • @sudarshanv9797
    @sudarshanv9797 3 роки тому

    Why you set header to response rather than request? Also, instead of setting headers for all responses can we set seperately for each individual response?

  • @felipemedina7738
    @felipemedina7738 2 роки тому

    excelent explanation !!
    thank you so much

  • @Savageboi506
    @Savageboi506 7 років тому +2

    Dude you cannot sanitize on entering the DB and rendering, because something like would become <h1> in the DB, then &lt;h1&gt; on render

    • @kylerobinsonyoung
      @kylerobinsonyoung  7 років тому +3

      Thanks for the correction. You're right, you don't want to sanitize HTML twice.

  • @antonyjoslin007
    @antonyjoslin007 7 років тому

    Hi Kyle,
    Instead of this if the text box is given validation for only alpha-numerals i.e; no special characters. Does it cause any attacks?

  • @alimertcakar1894
    @alimertcakar1894 4 роки тому

    Short and helpful. Thanks.

  • @VictoriaOtunsha
    @VictoriaOtunsha 2 роки тому

    Thanks for the breakdown

  • @vikramjadhav4180
    @vikramjadhav4180 9 років тому +1

    Wow! Nice tutorial
    which JavaScript Framework you are currently using?
    Could you give us a series for creating any application from scratch?
    Thanks!

    • @kylerobinsonyoung
      @kylerobinsonyoung  9 років тому +2

      +Vikram Jadhav Thanks! I used a vanilla JS app thrown together for demonstrating CSP. Not a great solution for building large apps, IMO but is simple and straight forward for small apps. I have some JS app architecture videos planned for the future.

  • @mattviverette
    @mattviverette 8 років тому +7

    Something funny happening with audio at 3:48

  • @smoothbeak
    @smoothbeak 8 років тому +6

    "Get your bearings" - 0:25

  • @cliffmathew
    @cliffmathew 4 роки тому

    Great content. You deserve more likes than the 427 that is registered here.

  • @etc.-Musik
    @etc.-Musik 4 роки тому

    there seems to be some kind of audio-problem like from minute 3:48. I tried listenging on different devices, with and without headphones, but no difference. maybe you could make an updated version with better audio?

  • @huanshao2165
    @huanshao2165 4 роки тому +1

    great explanation, thanks!

  • @diru424
    @diru424 4 роки тому

    Pure gold... thanks for the content

  • @MagedMegz95
    @MagedMegz95 3 роки тому

    Amazing tutorial. Very well explained as well. Thanks very much.

  • @ChongHwi
    @ChongHwi 4 роки тому

    Thanks for the video, quick understanding

  • @otiagosantoscode
    @otiagosantoscode Рік тому

    I didn't understand how do I fix this on a site that only uses html, css and js files (frontend only)...

  • @zepimousse4275
    @zepimousse4275 6 років тому

    Hi Kyle, great video, congratulations ! I get this error with Wordpress installation but not with a local installation. Do you know where I can find this setting ? Regards, ZP.

  • @swojchwat
    @swojchwat 4 роки тому +3

    3:50 you mic has been hacked :) Cool stuf though.

    • @MrMMohsen
      @MrMMohsen 3 роки тому

      Thanks for assuring me that I'm not the one who got hacked :P

  • @RSTao77432
    @RSTao77432 6 років тому

    Hi dude, i've only just heard about this CSP thing i'm trying to add it to my site but i'm having some troubles. I have some scripts from Copyright house, DMCA, and comodo ssl certificate, but as soon as i add the csp line it stops showing them. I understand that i cannot use inline js with this enabled but then how do i refernce the scripts if this is so, would a function() call not be blocked in the html file or browser... Please help, I have posted this on StackOverflow aswell.

    • @RSTao77432
      @RSTao77432 6 років тому

      Even after i've added the links and files to the trusted lists with spaces

  • @longtran12345678
    @longtran12345678 9 років тому +1

    Thanks for this guide.

  • @yuriimahotskyi6487
    @yuriimahotskyi6487 4 роки тому

    Very cool explanation :D

  • @adit255
    @adit255 9 років тому +1

    Great Tutorial .. ! :-)

  • @knotsable
    @knotsable 3 роки тому

    sound is screwed up ...

  • @solominh2012
    @solominh2012 7 років тому +4

    Google Chrome extension error bring me here. :D

  • @ohmatokita5990
    @ohmatokita5990 4 роки тому

    what's the end music's name? that's amaing!

  • @Nupur8590
    @Nupur8590 5 років тому

    Hey great work..
    I would be glad if you could one preventing XSS using Express middleware 'Helmet'..

  • @mohammadanas3320
    @mohammadanas3320 3 роки тому

    Thanks man

  • @ikazak
    @ikazak 4 роки тому

    nice! Thanks!

  • @rafadydkiemmacha7543
    @rafadydkiemmacha7543 5 років тому

    Why do you keep saying excaping?

  • @longingheart77
    @longingheart77 5 років тому

    Thanks mate

  • @japjap6406
    @japjap6406 7 років тому

    How to use this in PHP?

    • @kylerobinsonyoung
      @kylerobinsonyoung  7 років тому

      They are HTTP headers so with PHP you could do: header("Content-Security-Policy: default-src 'self'");

  • @dlsgrowyt2208
    @dlsgrowyt2208 4 роки тому

    Scp = secure contain protect
    Ohh i think i commented the wrong video srry😅

  • @PraveenNelsonv6
    @PraveenNelsonv6 4 роки тому

    Bears are the best. Kyle Robinson is also the best but most humans are lame (including me)

  • @mtsewrs
    @mtsewrs 9 років тому

    The audio is weird

    • @kylerobinsonyoung
      @kylerobinsonyoung  9 років тому

      +Ewers X Sorry about that! I'm not sure why the audio got fuzzy at that part.