---
title: "Cross-domain policy和/WEB-INF/flex/proxy-config.xml"
author: "buasgf"
date: "2012-07-01T09:34:17Z"
tags: []
categories: ["非技术"]
slug: "cross-domain-policy-web-inf-flex-proxy-config-xml"
draft: false
lastmod: "2012-07-01T09:34:17Z"
id: 1572679
url: "https://buasgf.iteye.com/blog/1572679"
---


　　从flash 7开始，不同域名的资源访问受到限制，比如a.com上有一个movie浏览器要浏览b.com中的movie资源，就需要在b.com的根目录下有一个crossdomain.xml以允许a.com的访问，内容大致为       如果没有权限在b.com的根目录下放置文件也可以设置HTTPService中的useProxy属性为true   HTTPService id="srv" destination="catalog" useProxy="true"/>    这其中的destination=''catalog"， 而catalog在root根目录下的/WEB-INF/flex/proxy-config.xml中配置，语句大致是    /{context.root}/testdrive-httpservice/catalog.j sp   其中{context.root}是根目录 catalog.jsp中存放的是提供给httpservice服务的数据 
