teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

伏せ字に修正

2022/10/07 05:27

投稿

nomori7010
nomori7010

スコア36

title CHANGED
File without changes
body CHANGED
@@ -62,7 +62,7 @@
62
62
  x-content-type-options: nosniff
63
63
  x-frame-options allow-from: https://xxx/
64
64
  x-xss-protection: 1;mode=block
65
- HTTPHost: msr.office.msandc.co.jp
65
+ HTTPHost: xxx
66
66
  PathInfo: xxx.asp
67
67
  IPAddress:
68
68
  From: xxx

1

2022/01/21 10:38

投稿

nomori7010
nomori7010

スコア36

title CHANGED
File without changes
body CHANGED
@@ -1,5 +1,8 @@
1
1
  Monacaでajaxリクエストを送信すると次のようにCORSのエラー(Safariの開発者ツールから採取)が発生します(一部`xxx`で伏せ字にしております)。
2
2
 
3
+ 実行はiOSシミュレータで行っています。
4
+ また、デバッグビルドを行い、実機でも同様の現象でした。
5
+
3
6
  ```
4
7
  [Error] Origin monaca-app://monaca.io is not allowed by Access-Control-Allow-Origin.
5
8
  [Error] XMLHttpRequest cannot load http://xxx due to access control checks.
@@ -25,7 +28,6 @@
25
28
  に変えて試しましたが改善しませんでした。
26
29
  何か原因と思われる箇所やチェックポイントを教えていただけますと幸いです。
27
30
 
28
-
29
31
  Monacaアプリからのリクエストの記述は下記のとおりです。
30
32
  ```app.js
31
33
  $.ajax({