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

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

CSP parsing error [6.2.346.1819] #1698

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

Comments

@Alex-302
Copy link
Member

@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' https://apis.google.com https://ssl.gstatic.com https://www.google.com https://www.gstatic.com;report-uri /_/NotificationsOgbUi/cspreport;frame-ancestors https://www.google.com.ua
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)

Logs:
agent_17-04-2017-14_54_16-2017-04-17.txt
service_17-04-2017-12_39_29-2017-04-17.txt

@ameshkov

This comment has been minimized.

Copy link
Member

@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
Projects
None yet
3 participants
You can’t perform that action at this time.