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

doc: updated default mixpanel config #160

Merged
merged 1 commit into from
Nov 16, 2020

Conversation

MichalBryxi
Copy link
Contributor

@MichalBryxi MichalBryxi commented Nov 16, 2020

Just tried current Mixpanel with the sample configuration from the README and got the error below. This PR should fix it.

Content Security Policy violation:

{
  "csp-report": {
    "document-uri": "http://localhost:4201/authenticated/meetings",
    "referrer": "http://localhost:4201/authenticated/meetings",
    "violated-directive": "connect-src",
    "effective-directive": "connect-src",
    "original-policy": "default-src 'none'; script-src 'self' 'nonce-abcdefg' localhost:4201 0.0.0.0:4201; font-src 'self'; connect-src 'self' ws://localhost:4201 ws://0.0.0.0:4201 http://localhost:4201; img-src 'self'; style-src 'self'; media-src 'self'; report-uri http://localhost:4201/csp-report;",
    "disposition": "report",
    "blocked-uri": "https://api-js.mixpanel.com/track/?verbose=1&ip=1&_=1605511174403",
    "line-number": 140,
    "column-number": 155,
    "source-file": "http://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js",
    "status-code": 200,
    "script-sample": ""
  }
}

Just tried current Mixpanel with the sample configuration from the README and got the error below. This should fix it.

```
Content Security Policy violation:

{
  "csp-report": {
    "document-uri": "http://localhost:4201/authenticated/meetings",
    "referrer": "http://localhost:4201/authenticated/meetings",
    "violated-directive": "connect-src",
    "effective-directive": "connect-src",
    "original-policy": "default-src 'none'; script-src 'self' 'nonce-abcdefg' localhost:4201 0.0.0.0:4201; font-src 'self'; connect-src 'self' ws://localhost:4201 ws://0.0.0.0:4201 http://localhost:4201; img-src 'self'; style-src 'self'; media-src 'self'; report-uri http://localhost:4201/csp-report;",
    "disposition": "report",
    "blocked-uri": "https://api-js.mixpanel.com/track/?verbose=1&ip=1&_=1605511174403",
    "line-number": 140,
    "column-number": 155,
    "source-file": "http://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js",
    "status-code": 200,
    "script-sample": ""
  }
}
```
@MichalBryxi
Copy link
Contributor Author

MichalBryxi commented Nov 16, 2020

Also for anyone stumbling over configuration issues, check out this issue: #111

Copy link
Collaborator

@jelhan jelhan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even though it just serves as a use case example it should actually work. Thanks a lot for fixing!

@jelhan
Copy link
Collaborator

jelhan commented Nov 16, 2020

Tests are failing for Ember CLI beta only. Need to fix or disable them. It's annoying.

@jelhan jelhan merged commit 75ec9c4 into adopted-ember-addons:master Nov 16, 2020
@MichalBryxi MichalBryxi deleted the patch-1 branch August 24, 2021 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants