LightningContainerExamples
LightningContainerExamples copied to clipboard
React App using lightning container blocked by CSP "wss"
I have developed react app and using lighting container. It is working fine with lightning community portal. But when I try to use the lightning container in lightning experience. It showed the error that I has been blocked Refused to connect to 'https://remote-api-service-dev.herokuapp.com/*********' because it violates the following Content Security Policy directive: "connect-src 'self' wss://fta--c.container.lightning.com:80".
So I added wss://fta--c.container.lightning.com into CSP setting. But it still not working.
Did I miss anything? Because I used it last year, it was working in last year in lightning experience.