티스토리 뷰

공부

[JS] CORS(Cross Origin Request Security)

승가비 2019. 10. 14. 17:51
728x90
// A.seunggabi.com
// B.seunggabi.com

// A
document.domain = "seunggabi.com"
// B
document.domain = "seunggabi.com"

 

[출처] https://noritersand.github.io/javascript/2017/02/03/javascript-window.opener%EC%97%90-%EA%B6%8C%ED%95%9C-%EB%AC%B8%EC%A0%9C%EB%A1%9C-%EC%A0%91%EA%B7%BC%ED%95%A0-%EC%88%98-%EC%97%86%EB%8A%94-%EA%B2%BD%EC%9A%B0-%ED%95%B4%EA%B2%B0%EB%B0%A9%EB%B2%95/

728x90

'공부' 카테고리의 다른 글

[JS] get element from within an `iframe`  (0) 2019.10.15
[JS] RegExp  (0) 2019.10.15
[Shell] compare to `String `, `Integer`  (0) 2019.10.14
[Python] set symbolic link  (0) 2019.10.14
[Java] use `Collections.sisngletonList` at only one list  (0) 2019.10.14
댓글