問題タブ [cross-domain-policy]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
1160 参照

socket.io - Socket.IO flashsocket security sandbox error

I have been playing around with node.js and socket.io for the past few days. Everything works fine on my local machine (windows using iss for a webserver), but when uploading it to my remote server (ubuntu box), I get security errors.

The AS3 code it's erroring on is:

The policy file is being served correctly on port 10843 and I can receive the policy file fine at http://**:10843/ in my browser. Why is it trying to load the policy file on port 8000. That warning does not appear on my local build.

The socket.io code:

I'm confused as to why it gets resolved fine when I test it on a localmachine but not on a remote one. Any help would be much appreciated :)

The crossdomain.xml I am using:

0 投票する
1 に答える
2558 参照

actionscript-3 - サブディレクトリ内のマスター ポリシー ファイルと crossdomain.xml の比較

別のサーバー (example.com) からテキスト ファイルを読み込もうとする localhost に swf があります。テキスト ファイルは、次のサブディレクトリにあります: example.com/test/example.txt

まず、ルートとサブディレクトリの内容は次のとおりです。

www.example.com:

/クロスドメイン.xml

/test/crossdomain.xml

/test/example.txt

ここで、アクションスクリプトで次のように明示的に言及すると:

そして、actionscript にhttp://example.com/test/example.txtをロードします。最初のアクションは、ルートの下にあるマスター ポリシー ファイルをチェックして、そのメタ ポリシーがテスト フォルダーからの crossdomain.xml の読み込みを許可しているかどうかを確認することです。ここでは、メタポリシーで「マスターのみ」が指定されているため、security.loadpolicyfile() で指定されたポリシー ファイルは読み込まれないと想定しています。しかし、私の質問は、このチェックの後、マスター ポリシー ファイルで<allow-access-from domain="*" secure="false" />指定されたポリシーのために、マスター ポリシー ファイルがテスト フォルダーからのテキスト ファイルのアクセス要求を許可するかどうかです。

0 投票する
1 に答える
74 参照

actionscript-3 - Accessing objects and variables from swf across domains

I am trying to access a variable from a test.swf on b.com from a parent.swf on a.com.

test.swf:

parent.swf:

I can access the swf like this. But how can I access and change the var test in test.swf?

0 投票する
1 に答える
3116 参照

facebook - Facebook は CORS ヘッダーを許可しますか?

Facebook がクロス ドメイン リクエストを許可しているかどうかを確認するにはどうすればよいですか? Facebook へのクロス ドメイン リクエストを処理できる JavaScript を作成できますか?

0 投票する
1 に答える
2303 参照

node.js - herokuノードjsの単純なクロスドメインの問題

私は2つのnodejs(Expressなし)アプリケーションで作業しました:

webprocess dataprocess

dataprocess は、次のコードで残りのメッセージを返します。

ローカルでは、すべて問題ありません。「Access-Control-Allow-Origin」は正常に機能します。しかし、heroku で 2 つのアプリを作成してデプロイすると、フライト前の ajax 呼び出し (OPTIONS) でブラウザーのクロスドメイン例外が発生します。何が悪いのかわからない?

ご協力いただきありがとうございます

ヨアン

0 投票する
1 に答える
8543 参照

cross-domain - クロスドメイン制限とサブドメイン

サブドメインに対するクロスドメイン ポリシー制限はありますか?

paint.xxxx.comからの画像を操作するアプリケーションを使用している場合image.xxxx.com、クロス ドメインの問題はありますか?

サブドメインにプロキシを配置することを検討しているため、これらの質問をしています。