This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
7
How to allow a javascript web app to connect to an API hosted on different domain
Post Body
I have a javascript react app hosted on neocities.org .. I have a C# asp.net webapi hosted at a different address.
I have set up the C# aspnet app to allow all headers and all origins.. (this is internal to my own network and won't be put out in wild)
but when I run app in chrome , and try to hit the api chrome says nope..
It all works fine of course when both are hosted on same machine locally (but using ips, not localhost)
Any suggestions?
Author
Account Strength
100%
Account Age
8 years
Verified Email
Yes
Verified Flair
No
Total Karma
4,786
Link Karma
4,408
Comment Karma
378
Profile updated: 3 days ago
Posts updated: 3 weeks ago
Subreddit
Post Details
We try to extract some basic information from the post title. This is not
always successful or accurate, please use your best judgement and compare
these values to the post title and body for confirmation.
- Posted
- 7 months ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/learnjavasc...