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

CORs for Ionic ? Error for $http.post

$
0
0

@dirkaka wrote:

I am trying to do a $http.post to my server. However , i keep getting errors regarding ""Access-Control-Allow-Origin" being missing despite already adding it to my backend.

Instead when i try to do a $http.get , adding "Access-Control-Allow-Origin" header to my backend helped solved the error. However with $http.post, its as if the decleration of the header is entirely ignored.

My question is do i need to add headers to my Ionic Side as well ? And if so, how can i go upon doing that? Thank you

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 49186

Trending Articles



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