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.
プリフライト OPTIONS リクエストが原因で、REST SOAPUI モックサービスが失敗します。SOAPUI で GET モック サービス /getAllStudents を作成しました。Apache サーバーから呼び出そうとすると、ブラウザから OPTIONS getAllStudents が呼び出され、404 エラーで失敗します。この問題を解決する方法はありますか?
これは、サーバー側で解決する必要がある問題のようです。着信 OPTIONS リクエストの場合、サーバーは許可されたメソッドと、次のヘッダーを使用して許可されたオリジンで応答する必要があります。
Access-Control-Allow-Origin: http://foo.example Access-Control-Allow-Methods: POST, GET, OPTIONS