alexkvak / teamcity-slack

TeamCity Slack plugin
MIT License
124 stars 23 forks source link

Error 403: Setting Public Artifact url #66

Open alwaysharsha opened 5 years ago

alwaysharsha commented 5 years ago

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.

alexkvak commented 5 years ago

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

alwaysharsha commented 5 years ago

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

alexkvak commented 5 years ago

is your TeamCity behind the proxy?

alwaysharsha commented 5 years ago

Yes, its behind NGINX proxy.

On Mon, Apr 22, 2019 at 4:23 PM Alex Kvak notifications@github.com 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 .

alexkvak commented 5 years ago

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

alwaysharsha commented 5 years ago

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

alexkvak commented 5 years ago

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

wawrzek commented 5 years ago

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