Content Security Policy

แชร์
ฝัง

ความคิดเห็น • 68

  • @arihantjain8347
    @arihantjain8347 2 ปีที่แล้ว +1

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

  • @user-os2sg1nn6e
    @user-os2sg1nn6e 3 ปีที่แล้ว +5

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

  • @colindante5164
    @colindante5164 2 ปีที่แล้ว

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

  • @basedonprinciple
    @basedonprinciple 3 ปีที่แล้ว +1

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

  • @codedynamics1
    @codedynamics1 2 ปีที่แล้ว

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

  • @jiayinglim657
    @jiayinglim657 8 ปีที่แล้ว +2

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

  • @klu.official
    @klu.official 8 ปีที่แล้ว +3

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

  • @MagedMegz95
    @MagedMegz95 3 ปีที่แล้ว

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

  • @rajani123yt
    @rajani123yt 3 ปีที่แล้ว

    Concepts are explained nicely with examples

  • @santiagoramirez874
    @santiagoramirez874 2 ปีที่แล้ว

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

  • @alimertcakar1894
    @alimertcakar1894 3 ปีที่แล้ว

    Short and helpful. Thanks.

  • @ChongHwi
    @ChongHwi 4 ปีที่แล้ว

    Thanks for the video, quick understanding

  • @diru424
    @diru424 4 ปีที่แล้ว

    Pure gold... thanks for the content

  • @grahamschuckman3483
    @grahamschuckman3483 2 ปีที่แล้ว

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

  • @longtran12345678
    @longtran12345678 8 ปีที่แล้ว +1

    Thanks for this guide.

  • @YaseenMohammedofficial
    @YaseenMohammedofficial 4 ปีที่แล้ว +1

    This is good for basic learners... Thanks

  • @huanshao2165
    @huanshao2165 4 ปีที่แล้ว +1

    great explanation, thanks!

  • @ari_james_dio9090
    @ari_james_dio9090 3 ปีที่แล้ว +1

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

  • @felipemedina7738
    @felipemedina7738 2 ปีที่แล้ว

    excelent explanation !!
    thank you so much

  • @VictoriaOtunsha
    @VictoriaOtunsha ปีที่แล้ว

    Thanks for the breakdown

  • @antonyjoslin007
    @antonyjoslin007 6 ปีที่แล้ว

    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?

  • @jakubsukowski1040
    @jakubsukowski1040 3 ปีที่แล้ว +1

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

  • @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.

  • @yuriimahotskyi6487
    @yuriimahotskyi6487 4 ปีที่แล้ว

    Very cool explanation :D

  • @sureshrampelli
    @sureshrampelli 4 ปีที่แล้ว

    Very nice and well explained..

  • @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

  • @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?

  • @adit255
    @adit255 8 ปีที่แล้ว +1

    Great Tutorial .. ! :-)

  • @Nupur8590
    @Nupur8590 5 ปีที่แล้ว

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

  • @cliffmathew
    @cliffmathew 3 ปีที่แล้ว

    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?

  • @taospencer1403
    @taospencer1403 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.

    • @taospencer1403
      @taospencer1403 6 ปีที่แล้ว

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

  • @otiagosantoscode
    @otiagosantoscode ปีที่แล้ว

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

  • @vikramjadhav4180
    @vikramjadhav4180 8 ปีที่แล้ว +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  8 ปีที่แล้ว +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.

  • @miketyson5929
    @miketyson5929 8 ปีที่แล้ว +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

  • @OriginalEXE
    @OriginalEXE 8 ปีที่แล้ว +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  8 ปีที่แล้ว +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 8 ปีที่แล้ว +1

      +Kyle Robinson Young Thanks, that makes sense.

  • @mohammadanas3320
    @mohammadanas3320 2 ปีที่แล้ว

    Thanks man

  • @ohmatokita5990
    @ohmatokita5990 3 ปีที่แล้ว

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

  • @ikazak
    @ikazak 3 ปีที่แล้ว

    nice! Thanks!

  • @longingheart77
    @longingheart77 5 ปีที่แล้ว

    Thanks mate

  • @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

  • @domaincontroller
    @domaincontroller 3 ปีที่แล้ว +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

  • @chuckyyes
    @chuckyyes 3 ปีที่แล้ว +1

    it's that easy to install security?

  • @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.

  • @mattviverette
    @mattviverette 8 ปีที่แล้ว +7

    Something funny happening with audio at 3:48

    • @kylerobinsonyoung
      @kylerobinsonyoung  8 ปีที่แล้ว

      Sorry about that! I'm not sure what happened there.

  • @smoothbeak
    @smoothbeak 8 ปีที่แล้ว +6

    "Get your bearings" - 0:25

    • @kylerobinsonyoung
      @kylerobinsonyoung  8 ปีที่แล้ว +1

      +Daniel Jeffery ˁ˚ᴥ˚ˀ

    • @smoothbeak
      @smoothbeak 8 ปีที่แล้ว +1

      +Kyle Robinson Young I'm on to you.

  • @knotsable
    @knotsable 3 ปีที่แล้ว

    sound is screwed up ...

  • @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'");

  • @solominh2012
    @solominh2012 7 ปีที่แล้ว +4

    Google Chrome extension error bring me here. :D

  • @rafadydkiemmacha7543
    @rafadydkiemmacha7543 4 ปีที่แล้ว

    Why do you keep saying excaping?

  • @mtsewrs
    @mtsewrs 8 ปีที่แล้ว

    The audio is weird

    • @kylerobinsonyoung
      @kylerobinsonyoung  8 ปีที่แล้ว

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

  • @dlsgrowyt2208
    @dlsgrowyt2208 3 ปีที่แล้ว

    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)