Tag:Cross domain

  • The laravel 5.4 API allows cross domain access


    The laravel 5.4 API allows cross domain access Requirement: Spa single page application request interface, error reporting XMLHttpRequest cannot load http://api.console.vms3.com/api/user. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://localhost:8080’ is therefore not allowed access. This means that the server response does not allow cross domain access Then we need to make the […]

  • An article takes you to understand Axios network interaction – Vue


    Author | jeskson Source: dada front end Tavern 1 What is Axios?Understand and use it. What do you know about the two ways Axios sends requests, and how to solve the cross domain problems involving Axios. For Axios network interaction, while using Axios, you should first understand what it is and how to use it. […]

  • How to use gateway?


    1. Write a configuration class corsconfig (if not, you can not write this class, which is related to the version of springcloud) package net.youqu.micro.service.config;import org.springframework.context.annotation.Bean;import org.springframework.context.annotation.Configuration;import org.springframework.web.cors.CorsConfiguration;import org.springframework.web.cors.reactive.CorsWebFilter;import org.springframework.web.cors.reactive.UrlBasedCorsConfigurationSource;import org.springframework.web.util.pattern.PathPatternParser;/** description: Java Project www fhadmin ORG */ @Configurationpublic class CorsConfig { @Bean public CorsWebFilter corsFilter() { CorsConfiguration config = new CorsConfiguration(); config.addAllowedMethod(“*”); config.addAllowedOrigin(“*”); config.addAllowedHeaderwww.sangpi.com(“*”); UrlBasedCorsConfigurationSowww.sangpi.comurce […]

  • IE8 compatibility record


    1 preamble PS: the fourth section describes the problems and solutions I encountered. Those who are not interested in the front can jump there directlyDuring the progress of the project, the original normal display shows many exceptions in the win7 system. The reason is that the IE version of win7 is IE8, while the commonly […]

  • Problems encountered in the use of laravel


    I haven’t studied for some time! Confused, in addition to confused or confused! Recently, the company received a laravel project. Unfortunately, it didn’t have PHPer, so it began to learn laravel. Now it’s going to start running before learning to walk, so it will hurt when it meets a pit! Problems with installation Installation steps […]

  • Axios network interactive application – Vue


    Author | jeskson Source: dada front end Tavern <template> <div id=”app”> <input type=”text” placeholder=”name” v-model=”user.name”> <input type=”text” placeholder=”age” v-model=”user.age”> <button type=”button” class=”btn” @click=”btn.clickcallback”> {{btn.text}} </button> <table class=”table”> <thead> <tr> <th>id</th> <th>name</th> < th > operation < / th > </tr> </thead> <tbody> <tr v-for=”item,index) in users” :kkey=”index”> <td scope=”row”>{{item.id}}</td> <td>{{item.name}}</td> <td> <a class=”btn” href=”#” role=”button” […]

  • Piece together an ABP vNext management background


    introduce The front and rear ends of the project are separated. The back end adopts ABP vNext framework and the front end Vue.Project address:https://github.com/pojianbing/AuthCenter The modules currently included are: Identity authentication management Identity server administration Tenant management Audit log In addition to identity server, the other three modules are based onABP-vNext-Vue。Identity server backend basedEasyAbp.IdentityServerAdmin, front […]

  • Three implementation methods of single sign on


    Excerpt fromJava learner communityAn article for everyone to learn fromOriginal address preface Implementation method 1: parent domain cookie Implementation mode 2: Certification Center Implementation method 3: localstorage cross domain Supplement: domain name classification preface stayB/SIn the system, the login function is usually based onCookieTo achieve. When the user logs in successfully, the login status is […]

  • Hematemesis finishing: common basic knowledge of HTTP


    Original is not easy. If you need to reprint, please [contact the author] or [sign the author and indicate the source of the article] When we talk about HTTP protocol, we usually think of TCP IP + SSL / TLS handshake directly at first impression. Today, let’s sort out some knowledge points related to HTTP […]

  • Axios + laravel 5.7 cross domain


    What is cross domain? Cross domain refers to requesting resources from one domain name to another. Cross domain request! When cross domain, the browser cannot execute the scripts of other domain name websites, which is caused by the same origin policy of the browser and the security restriction imposed by the browser. Strictly speaking, cross […]

  • Cross domain problem of Google browser obtaining local JSON files


    For many single page applications, when only simple HTML pages need to access JSON data files under the same path, cross domain problems will be reported. Unable to get local JSON file. Why do you encounter cross domain problems?Cross domain, that is, the browser has a security mechanism called homology policy (cros). Client scripts in […]

  • Samesite of cookie


    concept Samesite prevents browsers from linking cookies toCross siteSent with the request. The main objective is to reduce the risk of cross source information disclosure. It also provides some protection against cross site request forgery attacks. The possible values for this flag are lax or strict. Samesite can have the following three values: Strict only […]