1
I am developing an application that is communicating with Secure Pag Checkout through the Web Server url https://ws.sandbox.pagseguro.uol.com.br that is working perfectly, after making the payment Pagseguro provides the possibility to indicate a page in my application to receive the status of the transaction.
Only I’m developing on localhost and the address generated by IIS is not a valid address for Pagseguro’s Sandbox http://localhost:12345/
In the Pagseguro documentation you ask to use the CORS resource below
Response.Appendheader("Access-Control-Allow-Origin", "https://sandbox.pagseguro.uol.com.br");
The question how and where I insert this configuration into my application code Response.Appendheader ?
I performed all the above procedures and also put in Pagseguro the return URL of my application " http://localhost/Announcements/Feedback " and it doesn’t work, what I’m doing wrong.
– Cyberlacs
Insert row Enablecors here ... [Enablecors(Rigins: "https://sandbox.pagseguro.uol.com.br", headers: "", methods: "")] public class Adverticioscontroller : Controller{ ... }
– Cyberlacs
Error persists as "cross-origin"?
– Emerson Dias dos Santos