Skip to content

Instantly share code, notes, and snippets.

@kikiriko200
Last active April 16, 2020 04:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kikiriko200/1d525f4df3eabfa393b9e7e62830a0bc to your computer and use it in GitHub Desktop.
Save kikiriko200/1d525f4df3eabfa393b9e7e62830a0bc to your computer and use it in GitHub Desktop.
CORS回避用
$(document).ready(function(){
Object.defineProperty(document,"referrer",{value:"変更したいURL"});
$.ajax({
url:'読み込みたいURL',
type:'GET',
dataType:'text',
})
.done((data) => {
したい処理
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment