is that the server does not allow the front end to cross-domain, right? I know that it is a cross-domain problem, but the leaders do not know, please give some explanatory suggestions, it is also good to share the pot, thank you.
is that the server does not allow the front end to cross-domain, right? I know that it is a cross-domain problem, but the leaders do not know, please give some explanatory suggestions, it is also good to share the pot, thank you.
of course, the server does not allow cross-domain, ah, such a problem is either the front-end agent cross-domain, or the background allows cross-domain. And your interface 500 is directly thrown to the background, ah, it is obvious that the pot in the background
500 is not the pot at the front end, and the setting problem of the code on the server side is
header ('Access-Control-Allow-Origin:*').
add this to allow other domain names to access
the local service you started. If it is nodejs, set proxy official address
these 500s and cross-domain are two problems.
be clear:
Cross-domain is just that the browser refuses js to get the data, but the data will still be transferred to the browser, and the browser can read the data. It should be 200 OK, instead of 500
your server is still reporting errors.
the second is the cross-domain problem. Cross-domain generally requires the backend to add three return header messages to inform the browser of the access rights to this resource.
Cross-domain will send an OPTIONS request before sending the real POST request. Now, even if POST, is a cross-domain problem, the pot is also at the front end, and the front end should send an OPTIONS request first, or the screenshot has not been captured.
Previous: Static member initialization exception this is the connection to the database
Next: Is there a good open source implementation scheme for real-time communication sync mechanism?
the requirement is 010203 = > [01JEI 02jue 03] to write a regular "010203 ". Split (regular) = [01J 02pr 03] how do you write this? (0 [1-9] | (1 [0-2])) + g.test ( 0122 ) Why true is returned here. I want to match the number between 01 and 12....
< H2 > Development < H2 > ...
< H2 > question < H2 > want to add a shopping cart table, let users add items to the shopping cart, click settlement to generate the order, but do not know how to design and associate < H2 > reference < H2 > the link I referenced https: blog....
< H2 > problem, want to find out a data set similar to Taobao shopping cart < H2 > A user has a shopping cart, there are multiple stores under one shopping cart, and there are multiple items under one store linked table query 1. Check out the shop...
if you have a question, you can only enter the regular format of "Chrme,Safari,Firefox ". ...
Can or some boss give me an empty template? Save it and then write your own style and so on! ...
preg_match( var ori_head_img_url = "(.*?)"; ,$content,$biz); "||"MjM5MjAxNDM4MA== MjM5MjAxNDM4MA== ...
I don t know much about how to call the interface from the front and back end, but I don t know how to explain it. I ll simulate a project to illustrate my problem. now we have a project, the front end is developed with vue, the back end is develop...
as shown in the title: because the front and rear ends are separated from each other, jwt is used as a token to save user information. token is easy to be attacked by XSS when placed in localstorage, so I thought of using httpOnly s cookie to save tok...