Reputation: 11
when I try to invoke MFP adapter from Android Emulator getting the below error
Refused to connect to 'http://localhost:6015/mfp/api/adapters/Example/unprotected' because it violates the following Content Security Policy directive: "default-src 'self' data: gap: https://ssl.gstatic.com 'unsafe-eval'". Note that 'connect-src' was not explicitly set, so 'default-src' is used as a fallback.
Upvotes: 0
Views: 68
Reputation: 2279
Remove this meta tag from your index.html and run the app again, it should work
<meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *">
This tag will block the adapter call
Upvotes: 0