Snippet Brick causes Backend CORS Error #16912
Unanswered
sngm
asked this question in
Q&A / Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello folks.
I have a brick that I did not create myself. The brick loads a snippet. The brick shows the content live in the backend. So when I insert my form snippet, the form is also displayed in the backend.
My Pimcore instance uses a different subdomain in the backend than the frontend example:
Backend: backend.mydomain.de
Frontend: www.mydomain.de
Problem
If I now insert a snippet on a page, save it and call up the backend page again, I get a CORS error:
I have already inserted the header
Header set Access-Control-Allow-Origin "https://backend.mydomain.de"
via htaccess. That did not help.Does anyone know a solution to fix this?
Note: If I set the snippet brick on the page and then embed the snippet, the snippet is displayed. If I then save the page and reopen it in the backend, I get the CORS error and the snippet does not appear.
I hope you understand the problem. Thank you for any help.
Greetings
Magnus
Beta Was this translation helpful? Give feedback.
All reactions