melroyd16
melroyd16

Reputation: 85

Content Security Policy Error

Any suggestion why I cannot connect to a RESTful resource even though I've added it in the connect-src of the CSP. Below is the error message:

Refused to connect to 'http://api.pac-12.com/v2/events?sports=8&school=15' because it violates the following Content Security Policy directive: "connect-src 'self' http://api.pac-12.com/v2/*

Upvotes: 0

Views: 575

Answers (1)

Jamil
Jamil

Reputation: 939

You can remove the Content-Security-Policy tag from the index.html and add the below lines in the config.xml within the widget tag

<access origin="*"/>
<allow-navigation href="*"/>

Upvotes: 1

Related Questions