I created an LWC OSS app with express server using npx create-lwc-app:
- Do you want to use the simple setup? Yes
- Package name for npm demo-app
- Select the type of app you want to create Standard web app
- Do you want a basic Express API server? Yes
I paste the component miscRestApiCall from reciepe in the client and the other elements needed (my own code repo here : https://github.com/jeremyvial/testcallapilwcoss) but when I try the API call, I got error in the fetch function ( https://testlwcframworkk.herokuapp.com/ ) linked to the CSP.
Any clue about how and where i can autorise the call in the context of express server ?