You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Lorcan Lai (JIRA)" <ji...@apache.org> on 2017/12/07 01:16:01 UTC
[jira] [Issue Comment Deleted] (CB-13639) The fetch request has a
cross-origin problem
[ https://issues.apache.org/jira/browse/CB-13639?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lorcan Lai updated CB-13639:
----------------------------
Comment: was deleted
(was: Here is theexact error message for my issue.
{code:javascript}
Fetch API cannot load http://192.168.68.31:8080/login
. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'file://' is therefore not allowed access. The response had HTTP status code 403.
{code}
)
> The fetch request has a cross-origin problem
> --------------------------------------------
>
> Key: CB-13639
> URL: https://issues.apache.org/jira/browse/CB-13639
> Project: Apache Cordova
> Issue Type: Bug
> Environment: # cordova6/cordova7
> # 华为(HUAWEI)畅享5S Android5.1.1
> Reporter: Lorcan Lai
> Labels: cross-origin, fetch
>
> I used [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) to request a service,report "...cross-origin..." problem. And then I try to use Ajax or XMLHttpRequest to request the same service,there's no problem.
> a part of the content in my config.xml,
> {code:xml}
> <access origin="*">
> <allow-navigation href="http://*/*" />
> <allow-navigation href="https://*/*" />
> <allow-navigation href="data:*" />
> {code}
> Cordova is not good for the fetch request?
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org