简体   繁体   中英

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

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM