Important
Ensure that the Enable Content Sniffing Protection setting is disabled in Salesforce Setup. If this setting is enabled, it can prompt an error when accessing custom action.
To disable this setting, navigate to Setup - > Security Controls - > Session Settings and then uncheck the Enable Content Sniffing protection checkbox under the Content Sniffing protection section.