Resource requests whose URLs contain raw newline characters are deprecated

假装没事ソ 提交于 2019-12-23 17:15:27

问题


Does anyone know what this warning is referring to and how I would go about resolving it?

[Deprecation] Resource requests whose URLs contain raw newline characters are deprecated, and may be blocked in M60, around August 2017. Please remove newlines from places like element attribute values in order to continue loading those resources. See https://www.chromestatus.com/features/5735596811091968 for more details.


回答1:


From what I found elsewhere, this is caused by having a new line character within an element attribute.

The newline character has to be removed or replaced using, for example:

String.replace(/\n|\r/g, "");


来源:https://stackoverflow.com/questions/45983981/resource-requests-whose-urls-contain-raw-newline-characters-are-deprecated

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!