Know-how
  • Level UP ^
  • Xây dựng 1 ứng dụng Angular___BestPractice1
  • .Net framework
  • Build app with abp modulezero
  • Quản lý token trong aspnet web api
  • Xử lý ảnh với imageprocessor
  • Sms Provider For Two-factor authentication
  • Xử lý callback function khi server đéo bật CORS
  • Angular6.1 công bố chính thức tháng 7 năm 2018
  • Vài note trong entity framework core project
  • Những thứ đã upgrade trong netcore 2.1
  • Solution SQL Database Image Storage & Easy Thumbnails
  • Solution SQL Database Comments and Likes in database
  • Method guide (SQL DESIGN)
  • Paging Model Dto
  • Làm việc với Data table Grid
  • Jquery Extensions
  • A helper library for async/await.
  • oDATA TRONG DONET, RESTER framework
  • Validate dotnetcore use bootstrap 3 css
  • dynamically-loading-components-with-angular
  • Angular Sercurity
  • Add sercurity header for dotnetcore
  • Làm quen và cài đặt Golang (Iris framework)
  • Entity framework 6 - Entity maping to Stored Procedures
  • Angular Security - Authentication With JSON Web Tokens (JWT): The Complete Guide
  • Sql filestream
  • Một vài câu hỏi test Full-stack engineer (JavaScript)
Powered by GitBook
On this page

Xử lý callback function khi server đéo bật CORS

Xem ở đây: https://www.sencha.com/forum/showthread.php?299915-How-to-make-an-ajax-request-cross-origin-CORS

Đoạn code đấy ở đây:

$.ajax({
            url: 'http:ww.abc.com?callback=?',
            dataType: 'JSONP',
            jsonpCallback: 'callbackFnc',
            type: 'GET',
            async: false,
            crossDomain: true,
            success: function () { },
            failure: function () { },
            complete: function (data) {
                if (data.readyState == '4' && data.status == '200') {
                    errorLog.push({ IP: Host, Status: 'SUCCESS' })
                }
                else {
                    errorLog.push({ IP: Host, Status: 'FAIL' })
                }
            }
        });
PreviousSms Provider For Two-factor authenticationNextAngular6.1 công bố chính thức tháng 7 năm 2018

Last updated 6 years ago