We have a custom VisualForce page that consolidates a lot of information into one place. One of the components that we have is a standard Chatter:feed. Everything works great, unless we try to post a Chatter Question. The Question will post, but Chatter does not load similar Questions for the user to view. We thought this might be an issue with everything else on the page, so we created a simple VF page with this code to test:

<apex:page showHeader="false" sidebar="false" standardStylesheets="true">
    <div id="chatter-container">
        <chatter:feed entityId="{!$User.Id}" />

Everything loads correctly, until I click on question and type in a question. That's when Chrome's Console blows up with: Chatter CORS Issue Screenshot

To fix this, we've attempted to add the URLs from the errors in the CORS section of Salesforce along with Proxies and anything else I could find online. I'm to the point where I believe this is a Salesforce bug, but I could not find this issue listed. I'm guessing not many Orgs are using the Chatter Question in the standard Chatter:feed component and that is why this issue might not be listed. The other variable is we have a custom domain which might be causing some of this issue.

Does anyone have any other ideas that we could try to fix this?

  • Not that this is very helpful for you, but just as a point of reference that page works fine for me and I have a custom URL as well. – caleb.breckon Nov 16 '16 at 18:27
  • @caleb.breckon Did you attempt to use the Chatter Question option for your post and if so, did you view the console to see if there were any errors? – joe.stolz Nov 16 '16 at 18:29
  • Yes, I used that specific feed item type and the question posted successfully with no errors on the console. – caleb.breckon Nov 16 '16 at 18:32
  • That is strange. Do you have answered questions available in your Org? – joe.stolz Nov 16 '16 at 18:36
  • No, I made that in a pretty empty org. To clarify, the only steps I took were: as a sysadmin, created a visualforce page copy pasting exactly what you have above, open a new tab, navigate to /apex/test, and post a question. No switching Users, communities, sites, etc. – caleb.breckon Nov 16 '16 at 18:37

Looks like this is a reported bug: https://success.salesforce.com/issues_view?id=a1p300000008dTvAAI

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.