I am using sharepoint 2010 onpremise.
I created a custom list, content type and columns. After this I go to the list and click on the infopath button in the ribbon to customize the form. I changed the form and published to the server.
Now I get this error when I go to some page where I have added a infopath webpart:
The following location is in a different site collection: http://www.myCompany.nl/someSubsite/Lists/VraagEnAntwoord/VraagEnAntwoord/template.xsn. Access to locations on different site collections is blocked for security reasons. For more information, contact your site administrator.
This website has anonymous access.
I have googled and found many people with this problem, but I dont find some solution. Someone talk about create a template from infopath and then publish it to a content type. I dont understand this solution. Can someone help?