Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49526

CORS issue for token based authentication in ionic 4

$
0
0

@scharli wrote:

When i’m uploading my project on hosting site and data is coming from there only,it worked fine on localhost but when i uploaded my webapi on hosting server it’s not working data is not coming and i’m not able to logged into my application.
I tried different ways, in postman data is coming perfectly and i also able to log in.
Error is attached below:

1.) Error:

Access to XMLHttpRequest at ‘http://stylen.in/token’ from origin ‘http://localhost:8100’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

2.) Error:

POST http://stylen.in/token net::ERR_FAILED

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49526

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>