tohokuaikiのチラシの裏

技術的ネタとか。

2018-11-30から1日間の記事一覧

今更ながらクロスドメインのAjaxをする場合

1分でわかるようにメモ。 Ajaxを送る側(http://send.example.com/send_ajax.html) <html> <head> <script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script> <script> $(function(){ $('#b').on('click', function(e){ $.ajax({ ur…</head></html>