Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
外部ドメインに投稿するHTMLで作成されたフォームがあります
<form method="post" action="someExternalDomain.com/submit">
これで送信したいのですが(同一生成元ポリシーのためJQueryを使用できません)、JQueryを使用してサーバーからの応答をキャプチャします。どうすればいいですか?
前もって感謝します。
CORS なしでクロスドメインを投稿することはできず、jQuery は、jQuery.ajaxまたは iframe で行われない限り、応答にアクセスできません。どちらも同じオリジン ポリシーによって制限されています。
jQuery.ajax
CORS を実装したい場合は、IE のすべてのバージョンで動作するようにするには、他の変更も必要です。