Tag:Cross domain

  • Cross domain issues in upgrading springboot 1.0 to springboot 2.0 @ crossorigin


    In spring boot 1.5, cross domain configuration is usually done by adding @ crossorigin annotation directly to the controller or a method, as follows: However, after upgrading to spring boot version 2.0 (spring framework 5.0.2), the browser will report an error Looking at the response to the options request, you can see that the access […]

  • Use react + electron to develop an AI dubbing software and make a series


    GitHub open source addresselectron-audio-create=>>AI dubbing software developed by react + electron When I lost my job this year, I originally planned to do sand sculpture dubbing like we media. As a result, I found that many dubbing charges, and many of them are mobile phones, which is inconvenient to use. I just wanted to see […]

  • Using JS method to convert dataurl to file and URL to Base64


    Statement: only for the convenience of their own needs, also hope to facilitate others, if there is infringement, contact delete. 1, convert dataurl to file 1 /** 2 * convert dataurl to file 3 * @ param {string} dataurl – dataurl address 4 * @ param {string} file name – file name 5 */ 6 […]

  • Alicloud OSS signature upload (combined with elementui)


    Principle: get the signature from the server and upload it to the Alibaba cloud OSS server directly. file: Direct transmission of JavaScript signature Elementui main code template: < El form item label = “upload picture” prop = “video” > <el-upload id=”video” action :data=”aliyunOssToken” :http-request=”uploadVideo” :headers=”header”> <img v-if=”form.cover” :src=”form.cover”> < El button class = “Avatar uploader […]

  • How to enable CORS in webapi


    The security restrictions of browser security policy can effectively prevent Ajax from making requests to another domain server, which is well-knownHomologous strategyHow to break through this limitation? have access toCORS (Cross-Origin Resource Sharing)Cross domain resource sharing is a W3C standard to solve this problem. It allows you to get out of the limitation of the […]

  • A method of downloading and packing remote URL files in batches


    start Recently, code refactoring has encountered a problem, which needs to be solvedOSSPackage and download a batch of pictures on The hard disk of the old server is directly mountedOSSSo it’s directLinuxThe system commands are copied and packaged, so the speed is relatively fast. Refactoring code for new servers doesn’t work, and it’s not good […]

  • Python | flash solves cross domain problems


    Contents of series articles preface Shit, it’s cross domain again Use steps 1. Water diversion pip install flask-cors 2. Configuration Flash CORS has two usages, one is for global use, and the other is for specified routes 1. UseCORS functionConfigure global routing from flask import Flask, request from flask_cors import CORS app = Flask(__name__) CORS(app, […]

  • Jingtao day14 – creation of Jingtao front desk project


    1. Current back-end building strategy of jingtaoxiang 2. Jingtao front desk project creation 2.1 create project 2.1.1 edit project name 2.1.2 add Inheritance / dependency / Plug-in <?xml version=”1.0″ encoding=”UTF-8″?> <project xmlns=”http://maven.apache.org/POM/4.0.0″ xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd”> <modelVersion>4.0.0</modelVersion> <artifactId>jt-web</artifactId> <packaging>war</packaging> <parent> <artifactId>jt</artifactId> <groupId>com.jt</groupId> <version>1.0-SNAPSHOT</version> </parent> <!– Add jar package file dependency — > <dependencies> <dependency> <groupId>com.jt</groupId> <artifactId>jt-common</artifactId> […]

  • What is cross domain???


    What is cross domain? When a request URL   Protocol, domain name, port between any of the three different from the current page URL is cross domain. Current page URL         Requested page URL         Cross domain             reasonhttp://www.test.com/      http://www.test.com/index.html       […]

  • Vue springboot file operation, upload, preview and delete


    Video presentation: https://www.bilibili.com/video/BV1VK4y1s7b1/ The following steps need to be completed: Create projects and introduce dependency packages spring-boot-starter-web lombok Operate, upload, preview and delete files Add cross domain functionality < font color = Red > the front end uses Vue, and the front and back ends are separated < / font > < font color = […]

  • HTML5 using window. PostMessage to achieve cross domain data interaction


    background In the H5 embedded in an app, the product hopes to set an area under the page to display the teaching page generated by the operation students through the activity building platform. The page is built and replaced by the operation students themselves. The product students hope that the content of the teaching page […]

  • Analysis of JSP instance of Ajax cross domain solution in PHP


    In this paper, an example of Ajax cross domain solution in PHP, jsonp, is introduced. The details are as follows: First of all, what’s the difference between JSON and jsonp? JSON is a text-based way of data exchange, or a format to describe data. var person = { “name”: “test”, “age”: “25”, “Sex”: “male” }; […]