Error when add new page template

Nguyen Anh asked on January 3, 2023 11:34

Hi, I have a problem when add new page(with template) into tree node, it throw message An error occurred while attempting to retrieve page templates. The live site application is not running or is not accessible. My live site still running but cant add new page with template. When I check DevTools, it show 2 requests error:

GetFiltered CORS error xhr

GetFiltered 404 prelight


Here is detail of query:



Thanks & Best regards

Recent Answers

Juraj Ondrus answered on January 4, 2023 06:45

What is set as the presentation URL in your admin app? Is it the right URL to the live site, front end app?

0 votesVote for this answer Mark as a Correct answer

Elmar Höfinghoff answered on January 6, 2023 09:21

Is your CMS running on HTTPS? If yes, run the MVC app on HTTPS, too. Which Kentico version do you use? When registering CORS you may could do something like this to avoid issues on dev instances.

if (Environment.IsDevelopment())
    // Allow every kind of origin, header or method while developing
    // CORS = cross origin requests.
    // see also:
    services.AddCors(options =>
            builder =>
0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.