When deployed my application is working perfectly fine , but when tunneling , the css file is not being included so the elements are being rendered without styling , I tried both chrome and firefox browser
I even used a relative path in my react application to import the css file.
modules:
jira:globalPage:
- key: user-mananger-hello-world-page
resource: main
resolver:
function: resolver
title: user_Mananger
function:
- key: resolver
handler: index.handler
resources:
key: main
path: static/hello-world/build
tunnel:
port: 3000
permissions:
scopes:
Do you see the following warning in the forge tunnel when loading the page?
CSP violation detected for 'style-src-elem' while serving content at http://localhost:8001/
For an app to share data with external resources or use custom CSP, follow the steps in: https://go.atlassian.com/forge-content-security-and-egress-controls
I did in my test and can now successfully see the styling being applied and reloaded when any setting is changed after adding the following to the manifest.yml file:
permissions:
content:
styles:
- 'unsafe-inline'
By the way, this is the topic that pointed me in the right direction. While I think the specific problem mentioned there is specific to the AtlasKit components, I wanted to share it anyway in case you’ll use any of the AtlasKit components as that might help.