Error: Drupal\advanced_cors\EventSubscriber\AdvancedCorsEventSubscriber::onResponse() must be an instance of Symfony\Component\HttpKernel\Event\ResponseEvent, instance of Symfony\Component\HttpKernel\Event\FilterResponseEvent given in

Created on 6 March 2024, 8 months ago
Updated 7 March 2024, 8 months ago

Problem/Motivation

Getting Error while enable this mode with Drupal 8.9

Steps to reproduce

1 Install Advanced CORS Module.
2 Enable the module .
3 Attempting to access the site will result in an error. Drupal\advanced_cors\EventSubscriber\AdvancedCorsEventSubscriber::onResponse() must be an instance of Symfony\Component\HttpKernel\Event\ResponseEvent, instance of Symfony\Component\HttpKernel\Event\FilterResponseEvent given in

Proposed resolution

It should be the instance of "FilterResponseEvent" class.

🐛 Bug report
Status

Needs review

Version

1.5

Component

Code

Created by

🇮🇳India pavnish

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @pavnish
  • Issue was unassigned.
  • Status changed to Needs review 8 months ago
  • 🇮🇳India pavnish

    Hi artem0793,
    Could you please review this patch? It resolves the issue for me

    Thanks
    Pavnish

  • 🇩🇪Germany artem0793

    Hello pavnish,
    Thank you for your work on this project.
    Your patch will fix this part of the code but for Drupal 9 and 10, it will break it.
    I should make a new 2.0 release and move the changes. I will do it later.
    But now you can use version 8.x-1.4 it has the changes that you need.

    Best Regards,
    Artem Vilkov

  • 🇮🇳India pavnish

    Thanks @artem0793 .

Production build 0.71.5 2024