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

Content-Security-Policy is blocking our company url #302

Closed
pbender87 opened this issue Mar 8, 2024 · 1 comment · Fixed by #303
Closed

Content-Security-Policy is blocking our company url #302

pbender87 opened this issue Mar 8, 2024 · 1 comment · Fixed by #303
Assignees
Labels
Improvement Enhancement or code cleanup

Comments

@pbender87
Copy link

Hello,

thank you for the plugin. Unfortunately it is not possible to setup the plugin for our self hosted company gitlab as there is a content-security-policy:

Refused to connect to 'https://gitlab.mycompany.com/api/v4/projects/1/trigger/pipeline' because it violates the following Content Security Policy directive: "default-src data: blob: https://github.com https://bitbucket.org/ https://gitlab.com/ https://rsms.me https://.bitbucket.org/ https://.gitlab.com/ https://*.github.com". Note that 'connect-src' was not explicitly set, so 'default-src' is used as a fallback.

It would be helpful if we can change this content-security-policy or disable it.

Best regards
Philipp

@lukasoppermann
Copy link
Owner

Hey, it is not possible to disable the content security policy as this will break figma <> github.

It may be possible to add a wildcard to the connect-src.

If you want to check this in the figma api docs and send a PR, that would be great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement Enhancement or code cleanup
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants