# Redirect to external site in a plugin?

**URL:** <https://meta.discourse.org/t/redirect-to-external-site-in-a-plugin/132932>\
**Category:** Development\
**Created:** [8 november 2019 om 15:30 UTC](https://meta.discourse.org/t/redirect-to-external-site-in-a-plugin/132932 "2019-11-08T15:30:46Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Anil\_Gupta](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@Anil\_Gupta](https://meta.discourse.org/u/Anil_Gupta)\
**Post date:** [4 september 2020 om 22:14 UTC](https://meta.discourse.org/t/redirect-to-external-site-in-a-plugin/132932/7 "2020-09-04T22:14:21Z")

</div>

hi @pfaffman

Any luck with this situation? I am having same issue using the [Discourse SSO](https://meta.discourse.org/t/13045?silent=true) login from [asp.net](http://asp.net) core web API.

The Angular app browser is throwing the ‘accept control header’ not present error once the request is redirected from API to angular app (after discourse sent the reply back successfully).

Angular web app → [asp.net](http://asp.net) API-\> API calls [discourse SSO](https://meta.discourse.org/t/13045?silent=true)-\>Discourse returns values to [asp.net](http://asp.net) server API-\> API server redirects call back to angular app URL-\>Browser throws error that discourse URL is not accessible due to ‘Access control origin header’ not present.

![image](https://global.discourse-cdn.com/meta/original/3X/4/2/429c734f00d65e40d19a68af0f83121887af65b7.png)

All CORS settings on discourse are set up correctly and on the asp net API web server.

It sounds similar to the problem you faced earlier. I am hoping that you can shed some light on how to solve it.

---

_[View the full topic](https://meta.discourse.org/t/redirect-to-external-site-in-a-plugin/132932)._
