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

Violation of content security policy directive "default-src 'self' #103

Open
avenethermale opened this issue Sep 23, 2022 · 1 comment
Open
Labels

Comments

@avenethermale
Copy link

Hello!
First of all, THANK YOU for coming up with this plugin!

I use the plugin to send information to my slack channel, and in the slack channels, I set the notification setting to 'Mentions' so I would only get notified when the 'My keywords' I registered in slack are included in the message sent via the plugin.

So let's say if I registered my name to be 'My keywords' only when redmine issues with my name in it(as assignee, requested, in description, etc) is created/updated, i would get slack notification.

I was using it just fine and out of no where a few weeks ago, this function just stopped work.

I checked out slack's notifications-consol log, and it says slack is not able to notify me "because it violates the following Content Security Policy directive: "default-src 'self' https://app.slack.com/ app://*". Note that 'connect-src' was not explicitly set, so 'default-src' is used as a fallback."

here is the full log message:
}
[09/23/22, 11:11:44:934] error: Refused to connect to 'https://slack.com/apps/sentryproxy/api/5277886/envelope/?sentry_key=fd30fe469dbf4aec9db40548e5acf91e&sentry_version=7' because it violates the following Content Security Policy directive: "default-src 'self' https://app.slack.com/ app://*". Note that 'connect-src' was not explicitly set, so 'default-src' is used as a fallback.

[09/23/22, 11:11:45:072] info: Store: PREPARE_AND_REVEAL_LOGS
[09/23/22, 11:11:45:072] info: Store: CLOSE_APP_MENU
[09/23/22, 11:11:45:095] info: Store: UPSERT_WEB_CONTENTS {
"id": 7,
"state": "unloaded"

Do you know why slack is suddenly refusing the message? is there fix to this?? HELPP!!!

@alexandermeindl
Copy link
Collaborator

Hi @avenethermale,

I do not see this problem is related to this plugin. This could only be fixed by messenger provider or settings for it - in your case Slack.

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

No branches or pull requests

2 participants