Comunidade
Notificação retorna erro Fortiguard
Na compra de um produto dispara um erro 403 na notificação retorna esse log: "Fortiguard Intrusion Prevention", e no request no Postman a requisição funciona normalmente...
Detalhes do retorno:
{
"request": {
"url": "https://homolog.selflix.com.br/index.php",
"parameters": {
"notificationType": "transaction",
"notificationCode": "3B28E11246664666B83884137F88FFE4D867"
},
"headers": {},
"method": "POST"
},
"response": {
"headers": {
"User-Agent": "Jakarta Commons-HttpClient/3.1",
"Host": "homolog.selflix.com.br",
"Content-Length": "85",
"Content-Type": "application/x-www-form-urlencoded"
},
"body": "
<style>
body { height: 100%; font-family: Helvetica, Arial, sans-serif; color: #6a6a6a; margin: 0; display: flex; align-items: center; justify-content: center; } input[type=date], input[type=email], input[type=number], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=time], input[type=url], select, textarea { color: #262626; vertical-align: baseline; margin: .2em; border-style: solid; border-width: 1px; border-color: #a9a9a9; background-color: #fff; box-sizing: border-box; padding: 2px .5em; appearance: none; border-radius: 0; } input:focus { border-color: #646464; box-shadow: 0 0 1px 0 #a2a2a2; outline: 0; } button { padding: .5em 1em; border: 1px solid; border-radius: 3px; min-width: 6em; font-weight: 400; font-size: .8em; cursor: pointer; } button.primary { color: #fff; background-color: rgb(47, 113, 178); border-color: rgb(34, 103, 173); } .message-container { height: 500px; width: 600px; padding: 0; margin: 10px; } .logo { background: url(https://globalurl.fortinet.net:8010/XX/YY/ZZ/CI/MGPGHGPGPFGHDDPFGGHGFHBGCHEGPFBGAHAH
</style>
) no-repeat left center; height: 267px; object-fit: contain; } table { background-color: #fff; border-spacing: 0; margin: 1em; } table > tbody > tr > td:first-of-type:not([colspan]) { white-space: nowrap; color: rgba(0,0,0,.5); } table > tbody > tr > td:first-of-type { vertical-align: top; } table > tbody > tr > td { padding: .3em .3em; } .field { display: table-row; } .field > :first-child { display: table-cell; width: 20%; } .field.single > :first-child { display: inline; } .field > :not(:first-child) { width: auto; max-width: 100%; display: inline-flex; align-items: baseline; virtical-align: top; box-sizing: border-box; margin: .3em; } .field > :not(:first-child) > input { width: 230px; } .form-footer { display: inline-flex; justify-content: flex-start; } .form-footer > * { margin: 1em; } .text-scrollable { overflow: auto; height: 150px; border: 1px solid rgb(200, 200, 200); padding: 5px; font-size: 1em; } .text-centered { text-align: center; } .text-container { margin: 1em 1.5em; } .flex-container { display: flex; } .flex-container.column { flex-direction: column; } Web Filter Violation ","status-code": "403"
},
"created": "2022-07-21T13:45:50.556-0300"
}
Estou com o mesmo problema. Conseguiu encontrar uma solução?
Ainda não..
Mesmo problema aqui há dias.
Uma pergunta, é ambiente sandbox? caso seja homologação, já pediu a mesma para a equipe do pagseguro?
Depois de 3 dias apanhando no sandbox, acabei de descobrir que preciso marcar a caixa "localhost" nos detalhes da transação, colar a minha url de notificação. Desta forma, o status retorna 200 (OK). Não sei por quê esse procedimento, se deixar a url que configurei no sandbox ou colar a url e alterar o status ou pedir pra reenviar a notificação sem marcar o localhost, retorna o 403 (fortiguard block).
Mesmo problema aqui. Ja tentei add o header "access-control-allow-origin","https://sandbox.pagseguro.uol.com.br"... Ja marquei a caixa localhost.. nada funcionou.. nem qdo a transação é criada a notificação acontece. Tá dificil seguir.
Alguem teria alguma luz?
Fiz um vídeo mostrando como configurei. Lembrando que pela documentação, após a homologação tudo fica automatizado.
https://www.youtube.com/watch?v=QD9Y_Qll8JU