teamcity-slack icon indicating copy to clipboard operation
teamcity-slack copied to clipboard

Error 403: Setting Public Artifact url

Open alwaysharsha opened this issue 5 years ago • 8 comments

I am trying to setup the Slack Integration with TeamCity 2018.2.3

It's failing with the below error 403 Forbidden: Responding with 403 status code due to failed CSRF check: request's "Origin" header value "http://ftltctest.eng.company.net" does not match Host/X-Forwarded-Host header values or server's CORS-trusted hosts, consider adding "Origin: https://teamcitytest.eng.company.net" header.

Please provide me guidelines on this.

alwaysharsha avatar Apr 22 '19 09:04 alwaysharsha

@alwaysharsha could you provide more information, when it happens and what are your actions to become this message?

alexkvak avatar Apr 22 '19 10:04 alexkvak

When i enable the Slack plugin and fill the OAuth, Name and Sender Url and hit submit. I am seeing the above mentioned error instantly. Slack-error.jpg

alwaysharsha avatar Apr 22 '19 10:04 alwaysharsha

is your TeamCity behind the proxy?

alexkvak avatar Apr 22 '19 10:04 alexkvak

Yes, its behind NGINX proxy.

On Mon, Apr 22, 2019 at 4:23 PM Alex Kvak [email protected] wrote:

is your TeamCity behind the proxy?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/alexkvak/teamcity-slack/issues/66#issuecomment-485390801, or mute the thread https://github.com/notifications/unsubscribe-auth/ACYYGYANR7GBNSCFDZ6IXGLPRWKK5ANCNFSM4HHOW6DA .

alwaysharsha avatar Apr 22 '19 13:04 alwaysharsha

Please check your setting Administration -> Global Settings -> Server URL

alexkvak avatar Apr 22 '19 13:04 alexkvak

The url matches the Server URL, attaching the screenshot image.png

alwaysharsha avatar Apr 23 '19 04:04 alwaysharsha

No, it’s not. https is not the same as http

alexkvak avatar Apr 23 '19 05:04 alexkvak

I also noticed the same problem. It's not persistence.

wawrzek avatar May 13 '19 15:05 wawrzek