Skip to content

CSP settings for DevUI and Swagger #49001

Closed Answered by Stwissel
Stwissel asked this question in Q&A
Discussion options

You must be logged in to vote

To answer my own question....
You need this CSP:

default-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self' data:; script-src 'self' 'unsafe-eval' 'unsafe-inline' blob:; connect-src 'self' https://hcl-software.okta.com http://localhost:8090; report-uri /api/csp-violation-report

Works for both the devUI and Swagger UI.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Stwissel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
1 participant