Laravel API allows cross-domain access
Server A requests the interface of server B, so cross-domain problems generally arise.
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' istherefore not allowed access.
This means that the server response does not allow cr ...
Posted by YappyDog on Thu, 24 Jan 2019 02:48:14 -0800
Noejs implements single sign-on Demo through jsonp
Note: Use redis as session storage
Getting cookie s using dynamic js addresses introduced into sso servers
After the application server obtains the special identity provided by the single point server, such as session ID or other,
Go to redis directly through identification, or submit (through rpc) to a single server to query for ...
Posted by igorek on Wed, 23 Jan 2019 23:27:13 -0800
Java calls Linux to execute Python crawlers and stores data in elastic search - (java background code)
This blog is mainly java code. If you need scripts and java connection elastic search tool class code, please move to the previous blog.
1. Creating Link Execution Linux Script Tool Class
package com.yjlc.platform.utils.Elasticsearch;
import ch.ethz.ssh2.Connection;
import ch.ethz.ssh2.StreamGobbler;
import java.io.*;
/**
* ---------------- ...
Posted by asgsoft on Tue, 22 Jan 2019 14:12:13 -0800
ASP.NET -- WebForm -- Use of Cache Cache
ASP.NET -- WebForm -- Use of Cache Cache
Read the data from the database or file, and put it in memory. The latter users get the data directly from the memory, which is fast. Applicable to data that is frequently queried but not frequently changed.
1. Test5.aspx file and Test5.aspx.cs file
<%@ Page Language="C#" AutoEventWireup="true" CodeF ...
Posted by eabigelow on Tue, 22 Jan 2019 11:30:13 -0800
How to Use Session in Go lang
The basic principle behind Session is that the server maintains the information of each client, and the client relies on a unique Session ID to access the information.When a user accesses a Web application, the server creates a new Session using the following three steps as needed:
Create a unique Session ID
Open the data storage space: Usuall ...
Posted by Lynny on Sun, 20 Jan 2019 16:51:13 -0800
JAVAEE - Yicun Mall 11:sso login registration function, access to user information through token, Ajax cross-domain request (jsonp)
1. Learning plan
Day 11:
1. Implementation of sso registration function
2. Implementation of sso login function
3. Obtaining user information through token
4. Ajax cross-domain request (jsonp)
2. Construction of Sso System Engineering
You need to create a sso service project, which can be created with reference to e3-manager.
e3-sso (po ...
Posted by Coco on Fri, 11 Jan 2019 21:36:11 -0800
The application of GMS packages such as Chrome Gmail has flipped.
Recently, a project testing department tested very carefully, including the application of the Google GMS package. They mentioned case, saying that Chrome applications occasionally flip back in the process of use, which was not too ambitious, because Chrome is an application in the Google GMS package, we have no source code, an ...
Posted by coder9 on Thu, 10 Jan 2019 19:48:10 -0800
Spring Security Source Analysis 12: Spring Security OAuth2 Single Sign-on Based on JWT
Single sign on (English: Single sign-on, abbreviated as SSO), also translated as a single check-in, which provides access control attributes for many interrelated but independent software systems. When the user logs in, he can gain access to all the systems without having to log in to each single system one by one. This function is usually imp ...
Posted by crusty_php on Wed, 09 Jan 2019 23:54:10 -0800
Build and use K8s cluster <k8s dashboard pod deployment >
k8s dashboard pod deployment
Write yaml file
Create pod
Browser opens webui
Write yaml file
# cat dashboard.yaml
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
# Keep the name in sync with image version and
# gce/coreos/kube-manifests/addons/dashboard counterparts
name: kubernetes-dashboard-latest
namespace: kube-system
...
Posted by lookee on Wed, 09 Jan 2019 20:39:10 -0800
Detailed description of oracle parameters open_cursors and session_cached_cursor
SQL> show parameter open_cursors --each session(How many sessions can be opened at most at the same time cursor(Cursor)
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
open_cursors integer 300
SQL> show pa ...
Posted by myflashstore on Mon, 07 Jan 2019 22:45:10 -0800