Forum Discussion
LasseL
Helper I
3 years agoGetting Refused to connect to X because it violates the following Content Security Policy directive
Dear community, On a custom visual I am trying use a http post request by fetch to a logic app endpoint, and getting following error from the Console: Refused to connect to 'https://xxx.logic...
LasseMr
Advocate II
3 years agoI have found MS documentation that says changes have been made in API permissions and is now controlled by a object in the capabilities.json.
However, I tried setting these, and they still make no difference:
"privileges": [
{
"name": "WebAccess",
"essential": true,
"parameters": [
]
},
{
"name": "ExportContent",
"essential": true
}
]
Also, I tried changing from Logic Apps as an API service to create a simple web api publised to App Services on Azure, and setting CORS to allow * - but same error regarding Refused ... CSP.
Any ideas folks? Clearly it is possible to do perform API calls to external domains, what am I missing? 🙂