How to check if Access-Control-Allow-Origin is allowed for my domain?

If I configured correctly Access-Control-Allow-Origin: http://mydomain, should it be listed in the response headers if I view them using a web developer plugin ? I do not see this. Should he be there?

I tried to view the response headers after submitting my submit request and just call the page.


Background

I need to pass a pair of values ​​from mydomain to receivedomain via a POST XMLHttpRequest request and try to troubleshoot

XMLHttpRequest Page1.asp cannot load https: // receivingdomain . The requested resource does not have an Access-Control-Allow-Origin header

If I enable the Allow-Control-Allow-Extension plugin , my mail requests will work correctly. However, when this plug-in is disabled, my mail requests are accepted normally (data is inserted into the database). I just don't get any results from the receiving server.

+4
source share

Source: https://habr.com/ru/post/1583886/


All Articles