how to post data to production website through local in angular2?

39 views Asked by At

i have a site called x(http://production.com) it and for testing purpose in need to post a question from my localhost(http://localhost:8080). For authentication i used facebook javascript sdk.

now how to login and post data into x from localhost?

PS: i'm developer of x, so i have full access of all its backend.I can enable any permission which is needed.

1

There are 1 answers

3
xitter On

When you login via facebook on your website, you receive an access token which you can see in the chrome developer tool. You can copy/paste the same token(it can be used multiple times till expiry) in your curl call for posting the question.