Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Request URL:http://localhost:9000/login
- Request Headers CAUTION: Provisional headers are shown.
- Accept:application/json, text/plain, */*
- Content-Type:application/json;charset=UTF-8
- Origin:http://localhost:8000
- Referer:http://localhost:8000/app.html
- User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.114 Safari/537.36
- Request Payloadview source
- {userName:foo, password:bar}
- def checkPreFlight = Action {
- println("in CORS `checkPreFlight`")
- Ok("...").withHeaders(
- ACCESS_CONTROL_ALLOW_ORIGIN -> "*",
- ACCESS_CONTROL_ALLOW_METHODS -> "POST",
- ACCESS_CONTROL_MAX_AGE -> "300",
- ACCESS_CONTROL_ALLOW_HEADERS -> "Origin, X-Requested-With, Content-Type, Accept, Referer, User-Agent")
- }
- XMLHttpRequest cannot load http://localhost:9000/login. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8000' is therefore not allowed access.
Advertisement
Add Comment
Please, Sign In to add comment