-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
append frame-src config in test mode #152
append frame-src config in test mode #152
Conversation
Thanks so a lot for working on this! Looks good to me. Haven't had the time to look at the failing test yet.
It should already be that smart: https://github.com/rwjblue/ember-cli-content-security-policy/blob/43527edab59a68c8d747fede8cae4573d352baf2/lib/utils.js#L150-L153 |
@chbonser - Have you had any time to debug the failure here? |
@rwjblue I fear it's related to the buggy ember-cli-addon-tests setup. I working on the side on a replacement for that one but haven't had the time to finish it yet. |
Closed and reopened to trigger another Travis run after test suite was refactored in #154. |
Getting a way more helpful error in CI now:
The test tries to find the string This highlights a bug in |
Closing and reopening again after #156 has been merged. It should address the bug described in my last comment. Let's see. |
It's working. 👏 To avoid a regression I would prefer to have test coverage. There are already some tests coverage for @chbonser: Do you have time to add such a test or should I take over? Totally understand if you don't have time or motivation to do so after two months. |
@jelhan I am buried in other things at the moment but I'll try to squeeze in time later this week to add the test you mentioned. |
e565006
to
13654f8
Compare
3f3b1b8
to
bb61b57
Compare
Rebased and added a failing tests. Thanks a lot @chbonser for debugging and providing the original fix! I'm sorry that it took that long to get it in. |
Thanks @jelhan. Sorry I wasn't able to add the extra test coverage! |
Addresses #151
Note this works in my case because my app has
frame-src
defined. From the failing tests it appearsappendSourceList
does not handle the case of a missingframe-src
properly. ShouldappendSourceList
get smarter or should this problem get solved via another approach?