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

CSP parsing error [6.2.346.1819] #1698

Alex-302 opened this issue Apr 18, 2017 · 1 comment

CSP parsing error [6.2.346.1819] #1698

Alex-302 opened this issue Apr 18, 2017 · 1 comment


Copy link

@Alex-302 Alex-302 commented Apr 18, 2017

ERROR, AdguardSvc, 220, 17.04.2017 23:44:34.163, Cannot transform CSP: System.ArgumentException: Cannot parse CSP from object-src 'none';base-uri 'self';script-src 'nonce-qht2soHlw+zXA2qlaYo/Qlac2X8' 'unsafe-inline' 'unsafe-eval' 'strict-dynamic' https: http:;report-uri /_/NotificationsOgbUi/cspreport; script-src 'nonce-qht2soHlw+zXA2qlaYo/Qlac2X8' 'self' 'unsafe-eval';report-uri /_/NotificationsOgbUi/cspreport;frame-ancestors
Source: Adguard.Filter
Stack trace:    at Adguard.Filter.Http.Csp.CspValue..ctor(String header)
   at Adguard.Filter.Rules.InjectionServer.TransformContentSecurityPolicy(String policy)
    System.ArgumentException: An item with the same key has already been added.
    Source: mscorlib
    Stack trace:    at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
   at Adguard.Filter.Http.Csp.CspValue..ctor(String header)



This comment has been minimized.

Copy link

@ameshkov ameshkov commented Apr 18, 2017

Might be duplicate of #1678

@suhan3z suhan3z added the duplicate label Apr 18, 2017
@suhan3z suhan3z closed this Apr 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
3 participants
You can’t perform that action at this time.