K
K
Konstantin2020-02-22 11:53:15
CORS
Konstantin, 2020-02-22 11:53:15

Why does CORS swear if the address is the same?

Access to XMLHttpRequest at 'http://pfe.com/public/cabinet/transactions/get' from origin 'http://www.pfe.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.


Why does CORS swear if the same address is ` http://pfe.com`?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aetae, 2020-02-22
@Junart1

www, despite its prevalence, in terms of domain naming is no different from abc.
I think it's obvious that the request from abc.pfe.comto pfe.comis CORS.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question