-
-
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
[2.0.0-5]+ A meta
tag is added even if only header
is requested as delivery method
#259
Comments
Hello @boris-petrov, Thanks for reporting. I have two questions to verify that it's a bug:
Asking because it's expected that CSP is delivered through meta tag regardless of This shouldn't have been changed from Best jelhan |
@jelhan - thanks for the support!
Is that enough information? Do you still need a reproduction? |
Thanks a lot. That was enough information to reproduce. Setup test app
Build for
|
Well, no, it doesn’t. I could suppress the error from the validator if you think it’s better this way. But note that after all I’ve requested header delivery so it’s kind of strange that the tag is there in the “normal” `index.html`. I’m fine with it being in the other one as `testem` uses it for the Ember tests.
|
I see that it would be better to only ignore
We need to ensure that it can not be injected in both. That's not that easy as environment used to calculate configuration in Not sure when I will have time to try this approach. If you have some time for open source: a pull request is highly welcome. |
Thanks for considering this as an issue and taking the time to explain what must be done! I also probably won't have the time to check it out now but let's leave the issue open so it's tackled at some point. Thanks again! |
I updated
ember-cli-content-security-policy
from2.0.0-4
to2.0.0
and my HTML validator warned me of the following -Potentially bad value for attribute “content” on XHTML element “meta”: Invalid base64-value (should be multiple of 4 bytes: 7).
. No idea what that error means but it lead me to finding that since upgrading ameta
tag with my CSP settings has appeared. My settings containdelivery: ['header']
. The same happens when I try2.0.0-5
. Downgrading to2.0.0-4
fixes the issue.cc @jelhan
The text was updated successfully, but these errors were encountered: