Questions tagged [CORS] (92)

2
answers

Do I need a header Access-Control-Allow-Origin: * for normal website?

I understand that the header Access-Control-Allow-Origin: * need for sites that allow you to connect your scripts on other sites? Roughly speaking a normal website-the business card which anyone not how to share it is not necessary?
osbaldo_Kerluke29 asked April 19th 20 at 12:36
0
answer

Yandex Cloud Functions Post Request how to overcome CORS?

Welcome. There is a function that sends an email. exports.handler = async (event, context) => { const { name, phone, email } = JSON.parse(event.body); ... send letters ... return { statusCode: 200 }; }; Using Postman everything is OK. Using CORS Anywhere - everything is OK. Using axios, fetch, etc. (all from the...
Victoria.Little asked April 19th 20 at 12:10
1
answer

How to expect a long response from the server?

send a query and fetch the Post in a minute vyvalivatsya error Access to fetch at 'https://www.test.com:3999/api/test/' from origin 'localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request''s mode ...
Heloise.Schimmel47 asked April 18th 20 at 12:14
1
answer

CORS what can be the problem?

I have a Node server which allowed CORS explicitly. There is a Nginx proxy server, which also resolves an issue with CORS but for accessing the production server, an error occurs CORS. Could there be a problem on the provider side? PS I rent the VPS. P. S. 2. The error started to occur 2 days ago, I didn't touch anything. ...
Colin46 asked April 9th 20 at 10:28
5
answers

What's the matter with these Kors?

https://pastebin.com/raw/yhvU8vmz There is code trying to make a request to your server Nothing works, but using postman everything is OK Here are the headers returned by my laravel Where to look, what to think? Tell me, please
hilario_Ste asked April 9th 20 at 09:48
0
answer

How to send CORS request?

You need to get the page code to parse and get required data. If you try to do this in the code for the react application, you receive an error related to cors. If you disable it, the request just returns an empty string. Can offer other ways to get html code of the website, which will not cause an error.
Aliyah51 asked April 9th 20 at 09:27
1
answer

How to get around CORS request in JS?

Good evening, please tell me who worked with CORS. I washed down the statistics by coronavirus ncov.dev and so far I have tested it on the LAN used the plugin in the browser to disable cors, when it was necessary to deplot my data didn't load, spinning endless spinner, then found the solution (for me spike) to use before ...
Grady asked April 8th 20 at 17:47
0
answer

How to fix CORS?

Faced with the need to send the other person a project that was made using create-react-app, and this man was able to open it in the browser. npm run build goes well, everything Belitsa, but when trying to open index.html folder build, get the following error: Apparently this is because that in src the fetch I do with a ...
Annie_Wolf asked April 8th 20 at 17:14
1
answer

How to safely transfer information from one site to the other cookies?

Good day! Please tell me how I can solve the problem? There are two different sites ("A" and "B") on different domains. On the website "A", the user selects the product he wants to purchase. After selecting the product, he clicks "checkout" it redirects to the website "B", in which he already makes payment of the product....
Jolie_Schumm asked April 8th 20 at 10:01
1
answer

Lumen6 Cors error?

Good day, buck is Lumen6 Set up Cors so https://www.codementor.io/@chiemelachinedum/steps-... In dev it works without problems, but when moved to production 'Access-Control-Allow-Origin' => '*', //here is changed to the address of the front But the query gives an error Access to XMLHttpRequest at 'backsite.kz/login' f...
esteban.Nol asked April 8th 20 at 09:53