Find Jobs
Hire Freelancers

Need help submitting post api call from vue.js to Digitalocean

$10-30 USD

クローズ
投稿日: 約5年前

$10-30 USD

完了時にお支払い
Hello, I am trying to launch a new droplet through API the same way as I've done from terminal through curl. curl -X POST "[login to view URL]" \ -d'{"names":["[login to view URL]","[login to view URL]"],"region":"nyc3","size":"s-1vcpu-1gb","image":"ubuntu-16-04-x64"}' \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" This works perfect from the terminal. What I'm trying to do now is to launch it from just clicking a button in my VueJS Admin panel. What I'm currently dealing with: Access to XMLHttpRequest at '[login to view URL]' from origin '[login to view URL]' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. This is my first time trying to set up a post request to DigitalOcean. I am a bit clueless on how to add my API Key in the code as I've tried experimenting with a few options but to no avail. I'm trying to convert the curl command in vue.js where the request sends the body information like a form or something, then when DigitalOcean receives this information, it would work the same way as the curl command works from terminal. I will provide you with API key after. Code is included in the attachment.
プロジェクト ID: 19257910

プロジェクトについて

4個の提案
リモートプロジェクト
アクティブ 5年前

お金を稼ぎたいですか?

Freelancerで入札する利点

予算と期間を設定してください
仕事で報酬を得る
提案をご説明ください
登録して仕事に入札するのは無料です
この仕事に4人のフリーランサーが、平均$38 USDで入札しています
ユーザーアバター
Dear Hiring Manager! Wish you a very good day!!! After reviewing your post, I am very interested in that due to my experience. I’d like to be considered for your project position. I am an expert Web developer. As a senior software developer, I have developed lots of project. I will satisfy you with high quality. Best regards. Please contact me and let's discuss your project together. Best regards. Thank you for taking time reviewing the letter. I’m glad to answer any questions you may have! I’ll look forward to hearing from you for further process. Thanking you!!!
$50 USD 1日以内
5.0 (19 レビュー)
4.8
4.8
ユーザーアバター
Hi, I have 2 years experience in Vue.js and Digitalocean and I'd like to work on this project as I know what's causing the problem.
$30 USD 2日以内
5.0 (9 レビュー)
4.0
4.0
ユーザーアバター
its cors error please feel free to contact me to get solution here. i am expertise in Cross platform apis development
$35 USD 1日以内
4.2 (1 レビュー)
2.2
2.2

クライアントについて

PHILIPPINESのフラグ
Makati City, Philippines
0.0
0
メンバー登録日:4月 16, 2019

クライアント確認

ありがとうございます!無料クレジットを受け取るリンクをメールしました。
メールを送信中に問題が発生しました。もう一度お試しください。
登録ユーザー 投稿された仕事の合計
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
プレビューを読み込み中
位置情報へのアクセスが許可されました。
あなたのログインセッションの有効期限がきれ、ログアウトされました。もう一度ログインしてください。