Files
codeocean/config/content_security_policy.yml.example
2022-09-06 13:57:29 +02:00

34 lines
961 B
Plaintext

# This file allows to further customize the Content Security Policy (CSP)
# All settings will be applied **in addition** to the application CSP
# Default directives are defined here: `initializers/content_security_policy.rb`
default: &default
# Allow the S3 service hosted by the openHPI Cloud to be used for images
img_src:
- https://s3.xopic.de
- https://*.s3.xopic.de
- https://s3.openhpicloud.de
- https://*.s3.openhpicloud.de
# Webkit didn't consider the WSS scheme as part of 'self', adding it explicitly
# See https://bugs.webkit.org/show_bug.cgi?id=235873
connect_src:
- wss://codeocean.openhpi.de
# Optionally: Specify a custom, non-Sentry URL for reporting CSP violations
# report_uri: https://example.com/csp-report
development:
<<: *default
# Allow the webpack-dev-server in development
connect_src:
- http://localhost:3035
- ws://localhost:3035
production:
<<: *default
test:
<<: *default