Difference between revisions of "IONIC3 - Cors issues AccessAllowOrigin"

From GUILLARD WIKI
Jump to navigation Jump to search
(Created page with "Issue: <syntaxhighlight lang="javascript"> {"headers":{"normalizedNames":{},"lazyUpdate":null,"headers":{}},"status":0,"statusText":"Unknown Error","url":null,"ok":false,"nam...")
 
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
</syntaxhighlight>
</syntaxhighlight>


Solution <br/>
Solution: <br/><br/>
1)
1)
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
Line 12: Line 12:
in your config.xml
in your config.xml
</syntaxhighlight>
</syntaxhighlight>
2)
2)
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
<feature name="CDVWKWebViewEngine">
<feature name="CDVWKWebViewEngine">
   <param name="ios-package" value="CDVWKWebViewEngine" />
   <param name="ios-package" value="CDVWKWebViewEngine" />
</feature>
</feature>
<preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />
<preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />
</syntaxhighlight>
</syntaxhighlight>
3)
3)
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">

Latest revision as of 20:48, 5 September 2018

Issue:

{"headers":{"normalizedNames":{},"lazyUpdate":null,"headers":{}},"status":0,"statusText":"Unknown Error","url":null,"ok":false,"name":"HttpErrorResponse","message":"Http failure response for (unknown url): 0 Unknown Error","error":{"isTrusted":true}}
2018-05-02 10:50:54.811397-0300 Webeav[6895:83093] CDVWKWebViewEngine: handleStopScroll

Solution:

1)

rm -rf platforms/
rm -rf plugins/
in your config.xml

2)

<feature name="CDVWKWebViewEngine">
  <param name="ios-package" value="CDVWKWebViewEngine" />
</feature>
<preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />

3)

ionic cordova build ios (build ios required even if you are only working on android)
ionic cordova build android