for example, the local domain name is aaa.com, but the interface uses bbb.com, so now the cookie sent back from the backend is also on the bbb.com. You can"t get the cookie directly from the local document.cookie. Is there a way to get it
?due to browser restrictions, the front end cannot get cross-domain cookie. You need to add a request header to the backend
Access-Control-Allow-Origin: http://aaa.com
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: Content-Type, Set-Cookie, *
The domain in cookie in bbb.com is not written, so aaa.com can get it, but it's not good to do so
backend solution or save the front end in session.
if necessary, store it in the browser cache. Cross-domain will bring more security problems
so that the request to access the b server is requested by the a server, and then returned by the a server to the front end
.as shown in the figure above, use css to make a magnification effect when a mouse passes over a square, but as soon as you enlarge a square, the square next to it will be squeezed out or squeezed into the next row. Is there any way to fix the enlarge...
at present, the project is a front-end built with vue.js. I searched the Internet and found only two plug-ins, one is Baidu s echarts, and the other is d3.js. but it seems that the tree structure of these two trees can only be tree spread structure, s...
$(".forExecute").click(function(){ var tableSign = $("-sharptableSign").val(); if(!(tableSign > 0)){ layer.msg(""); return; } var forNum = $("-sharpforNum").val(); for(var i...
my front-end project is built directly using vue scaffolding and vue-cli. At present, I only know that you can import a js file into the .vue page through the import xxx.js file, and then I would like to ask how to introduce the outer chain? I trie...
how can this trapezoidal typesetting be realized in the figure above? ...
Hello, bosses, here s the thing. the company s computer is the win10 system. When I installed sourcetree, I went to the registration page, which did not show life or death, but always showed a blank, which led me to fail to install it smoothly. I mys...
using the front end built by vue+element-ui, a very strange thing occurs when using the selection box component that is retrieved remotely: <el-form-item label=""> <el-select v-model="relatedDialogAdd" m...
now the product manager wants me to implement a function of connecting dual screens with the same host, opening a web page on one screen, and then clicking a button in it to pop up a window to another screen (or you don t need to pop it over. You can p...
setting html {overflow: hidden} on mobile cannot hide the scroll bar. What is the principle? there is also a scroll bar that floats and does not take up space. What s the difference other than that? added: what I said about hiding invalid has been ...
if you buy a game under the title, will it feel less comfortable than an office computer? seek popularity ...
above picture labelemmmmmm........,iview chrome above is 14px, but my change just doesn t work. I don t know if there s something wrong with it. I hope the boss can try it. If you can change it, you can teach me. Thank you very much. ...
emmm, if the question is a little stupid, please forgive me. condition: assume that the size of the design drawing is 750px 1. Use flexible layout to calculate the size of each element relative to the design drawing. the whole page is adaptable and...
when I was learning layout viewport, I learned that scale scaling does not affect the size of the layout viewport. The size of the layout viewport is the same when zooming, but when using scale to solve the 1px problem, it is as follows: <meta name=...
problem description the platform version of the problem and what methods you have tried related codes Please paste the code text below (do not replace the code with pictures) what result do you expect? What is the error message actually s...