Truemag

  • Categories
    • Tips And Tricks
    • Internet
    • PHP
    • Javascript
    • CSharp
    • SQL Server
    • Linux
  • Lastest Videos
  • Our Demos
  • About
  • Contact
  • Home
  • Write With Us
  • Job Request
Home Tips And Tricks Example Of crossdomain.xml – Cross Domain Policy File

Example Of crossdomain.xml – Cross Domain Policy File

In order for Flash and other client-side technologies be able to submit cross domain, we need to place a file called crossdomain.xml in the website root. And below is an example of crossdomain.xml

Cross domain policy file – crossdomain.xml

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
	<allow-access-from domain="domain1.com" />
	<allow-access-from domain="*.domain2.com" secure="true" />
	<allow-access-from domain="*.domain3.com" />
</cross-domain-policy>

<?xml version="1.0"?> <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd"> <cross-domain-policy> <allow-access-from domain="domain1.com" /> <allow-access-from domain="*.domain2.com" secure="true" /> <allow-access-from domain="*.domain3.com" /> </cross-domain-policy>

Note:

  • 1. If allow cross domain access for a particular domain and all its sub domains, use *.example.com
  • 2. If the communications need to switch between HTTP and HTTPS, we need to use secure=”true” attribute.
  • 3. Specify domain=”*”; meaning allow access from all domains; is NOT recommended.
Mar 19, 2012Hoan Huynh
C# ASP.NET Remove leading and trailing quotes(') or double quotes (")Update iPhone 4s To iOS 5.1 With WiFi or iTunes
You Might Also Like:
  • How To Track Website With Multiple Google Analytisc Accounts
  • Facebook Like Button And Recommend Button With fb:like, iframe and html5
  • Internet Explorer 9 Has Modified This Page To Prevent Cross-Site Scripting
  • Create Amazon CloudFront With Your Own Domain And Own Files Server
  • Create CrmService with Domain, Username And Password
  • PHP Delete File Function
  • Godaddy Cancel Domain, Hosting, VPS, Dedicated Server Or Virtual Data Center
  • IE Enable/Disable Proxy Server by using script file
  • HTTP/ HTTPS Document, CGI-BIN And Access/ Error Logs On cPanel, Plesk And VirtualMin
  • Jquery checkbox checked
Hoan Huynh

Hoan Huynh is the founder and head of 4rapiddev.com. Reach him at [email protected]

8 years ago Tips And Tricksallow-access-from, crossdomain, Flash327
0
GooglePlus
0
Facebook
0
Twitter
0
Digg
0
Delicious
0
Stumbleupon
0
Linkedin
0
Pinterest
Most Viewed
PHP Download Image Or File From URL
21,932 views
Notepad Plus Plus Compare Plugin
How To Install Compare Text Plugin In Notepad Plus Plus
19,767 views
Microsoft SQL Server 2008 Attach Remove Log
Delete, Shrink, Eliminate Transaction Log .LDF File
15,600 views
JQuery Allow only numeric characters or only alphabet characters in textbox
13,117 views
C# Read Json From URL And Parse/Deserialize Json
9,570 views
4 Rapid Development is a central page that is targeted at newbie and professional programmers, database administrators, system admin, web masters and bloggers.
Recent Posts
  • Essay Writing Service Tips For The Online Essay
  • Research Paper Writing Service
  • Annotated Bibliography Example – How it Can Help You
  • Essay Writing Online Tips – How to Write Essays Online With Essay Proof Editing
  • Get Research Paper Assistance From Professional Help
Categories
  • CSharp (45)
  • Facebook Graph API (19)
  • Google API (7)
  • Internet (87)
  • iPhone XCode (8)
  • Javascript (35)
  • Linux (28)
  • MySQL (16)
  • PHP (84)
  • Problem Issue Error (29)
  • Resources (32)
  • SQL Server (25)
  • Timeline (5)
  • Tips And Tricks (141)
  • Uncategorized (64)
Recommended
  • Custom Software Development Company
  • Online Useful Tools
  • Premium Themes
  • VPS
2014 © 4 Rapid Development