Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Add frame-src to CspOptions and include in CSP header #1145

Closed
dai-le opened this issue Apr 3, 2015 · 15 comments
Closed

Add frame-src to CspOptions and include in CSP header #1145

dai-le opened this issue Apr 3, 2015 · 15 comments
Assignees
Milestone

Comments

@dai-le
Copy link

dai-le commented Apr 3, 2015

Adding facebook like button with IFrame but could not specify frame-src.

Got it to work with this:
options.CspOptions.ScriptSrc = "; frame-src https://www.facebook.com;";

@brockallen
Copy link
Member

Oh sorry -- it's an iframe to FB. Still, do you really need a FB like button on your login page?

@dai-le
Copy link
Author

dai-le commented Apr 4, 2015

It's a requirement from the product owner.

@brockallen
Copy link
Member

You might want to just mention that the login page is an odd place to have something like that.

@dai-le
Copy link
Author

dai-le commented Apr 6, 2015

Certainly can.

@leastprivilege
Copy link
Member

and with "odd" - Brock means insecure. You want to lock down your login page as much as possible.

@brockallen
Copy link
Member

So what are we going to do with this issue?

@dai-le
Copy link
Author

dai-le commented Apr 13, 2015

Have you decided on whether or not you'll be adding support for frame-src? I don't see a reason not to if the library already supports script-src, unless you see otherwise.

@brockallen
Copy link
Member

I guess we can add this. IMO doing that on the login page is a bad idea, though, but I can't stop you from doing it.

@dai-le
Copy link
Author

dai-le commented Apr 13, 2015

Yeah, I agree with you, having someone else's script being able to run on your login page is not safe.

@brockallen brockallen self-assigned this Apr 14, 2015
@brockallen brockallen modified the milestones: 2.1, 2.0 Jun 1, 2015
@leastprivilege
Copy link
Member

is this still required?

@dai-le
Copy link
Author

dai-le commented Oct 5, 2015

I have little control over how it should all work :/ but as of right now, the requirement is still there and the work around is working for us to get the script on the page at the moment. I don't know how you guys decide on what features get in; my only concern is the possibility of a future change that might break our work around if this doesn't get in.

@brockallen
Copy link
Member

Ok, we'll add it (since you can obviously subvert it by changing the source code).

@dai-le
Copy link
Author

dai-le commented Oct 6, 2015

Thank you.

@leastprivilege leastprivilege modified the milestones: 2.x, 2.1 Oct 19, 2015
@edwinf
Copy link

edwinf commented Oct 23, 2015

@brockallen I would request this as well. My product owner wants to add reCaptcha to our login page and the frame source is the one piece we're missing. (the above workaround is what we'll do in the short term). If it would help, I can submit a PR.

@leastprivilege leastprivilege removed this from the 2.x milestone Dec 6, 2015
@leastprivilege leastprivilege added this to the 2.4 milestone Jan 9, 2016
@brockallen
Copy link
Member

Done on dev

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants