It seems I may have misinterpreted the full implementation of CORS on my server.
Looking at this screenshot of a request made through Chrome.
https://i.sstatic.net/9F1tE.png
We can observe that we are accessing the site shakh.photography
, where the request URL is a POST ajax request to /api/get-videos/
. However, the response includes an Access-Control-Allow-Origin
header referencing a completely different domain.
Despite the webserver including an Access-Control-Allow-Origin
header, the browser seems to be ignoring it as everything still functions normally.
I was under the impression that just setting the Access-Control-Allow-Origin
would restrict requests to only those from the specified origin.
What am I overlooking?
Until this issue is resolved, users can test the situation by visiting shakh.photography.