You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use a backend controller (implementing HttpGetActionInterface) to return a CSV file. I trigger the download with a button click. (button in system.xml, block type is a custom AbstractElement and I changed the button onClick to setLocaltion(...backendUrl->getUrl()...)).
The file I download this way when the MSP Devtools is enabled get the script tag appended:
If the devtools is disabled, I get the expected CSV file.
I use a backend controller (implementing
HttpGetActionInterface
) to return a CSV file. I trigger the download with a button click. (button in system.xml, block type is a customAbstractElement
and I changed the button onClick tosetLocaltion(...backendUrl->getUrl()...)
).The file I download this way when the MSP Devtools is enabled get the script tag appended:
If the devtools is disabled, I get the expected CSV file.
I think this issue is similar to #53
Preconditions
Magento: 2.4.6
PHP: 8.1
Steps to reproduce
Backend controller like:
Expected result
It should not inject script code into raw files. Maybe skip media types like
text/*
similar toapplication/json
.The text was updated successfully, but these errors were encountered: