-
Notifications
You must be signed in to change notification settings - Fork 77
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 #991
Comments
Welcome to Springwolf. Thanks a lot for reporting your first issue. Please check out our contributors guide and feel free to join us on discord. |
Hi @atul-gawali,
|
Hi @sam0r040 Q1. Does your spring boot backend serve the async api file for the correct path?
Q2. Does your spring boot backend serve the springwolf ui? io.github.springwolf springwolf-ui 1.6.0 Q3. Is there an error in the browser?
Do we need any properties in application.properties for the filepath of ayncapi.json file? |
Hi @sam0r040 We wrote spring boot application by following the documentation https://www.springwolf.dev/docs/faq to display the UI for asyncapi file(asyncapi.json). But the application doesn't display the details as in asyncapi file. Here is a screenshot of the browser. Here is the sample code springwolf-ui.zip. Can you please check the sample code? |
@ajit2k21 Have you checked the browsers network tab to see whether the GET request is successful? Just to double check: The asyncapi file is located at |
@timonback Thanks for reply. Now I am able to display the asyncapi-ui.html in the sample application. We integrated the springwolf-ui dependency to our product but found some issues with ui like as below because our product follow the "Content Secure Policy"(Reference: https://cheatsheetseries.owasp.org/cheatsheets/Content_Security_Policy_Cheat_Sheet.html) so its block the inline the css and js. Here is the screenshot of asyncapi-ui.html and its contents. It has inline css codes. As per the Content Secure Policy, all inline CSS and JS contents must be in external files and links in HTML files. Can you please suggest to me how can we resolve the Content Secure Policy issue? Are you planning to work on this issue? |
Hi @ajit2k21 , great to hear. You are welcome to contribute a We use a default Angular application setup on the frontend, see |
Is there any update on the "Content Security Policy" enhancement? |
I am looking for a sample code of springwolf-ui (without plugin) using asynapi file. I tried steps provided at https://www.springwolf.dev/docs/faq but couldn't get the springwolf UI generated from my asyncapi file placed in resources folder of my spring boot app
The text was updated successfully, but these errors were encountered: