Skip to content
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

Recommend <meta charset="utf-8"> before CSP <meta http-equiv="">? #95

Open
Malvoz opened this issue Mar 9, 2019 · 0 comments
Open

Recommend <meta charset="utf-8"> before CSP <meta http-equiv="">? #95

Malvoz opened this issue Mar 9, 2019 · 0 comments

Comments

@Malvoz
Copy link

Malvoz commented Mar 9, 2019

https://infosec.mozilla.org/guidelines/web_security#implementation-notes

[...] pages can instead include a <meta http-equiv=“Content-Security-Policy” content=“…”> tag. If they do, it should be the first <meta> tag that appears inside

https://html.spec.whatwg.org/multipage/semantics.html#charset

The element containing the character encoding declaration must be serialized completely within the first 1024 bytes of the document.

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

No branches or pull requests

1 participant