Skip to content

monjer/cros-demos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Some demos showing post cross domain request.

Get Start

Before you get start , make sure you have install nodejs in your local machine .

Download the project , and run

npm install
npm run start

Need run in 80 port , so may be need root privileges.

You need add some local domain mappings to 127.0.01 in you hosts file , and open the browser in the main domain.

  • www.server.com
  • sub.server.com

Introduction

Some cross domain method includes:

  • document.domain
  • window.name
  • window.postMessage()
  • hash fragment change event
  • JSONP
  • CORS

Releases

No releases published

Packages

No packages published