Module breaks Media Ajax calls

Created on 27 March 2023, over 1 year ago
Updated 28 March 2023, over 1 year ago

Problem/Motivation

I installed ip_consumer_authentication to allow ip-based authentication for some custom REST endpoints I had created. Now, however, my media file uploads are broken. I'm getting a 403 (The used authentication method is not allowed on this route). When I disable the module, I can upload again. I'm sure something simple is misconfigured but I can't seem to figure it out. I thought perhaps I simply didn't have the correct IP whitelisted, but when I change it to a blacklist and put in junk IPs for testing, I still cannot upload files. I'm stumped!

Steps to reproduce

  1. On a D9 site, ensure you can upload files by going to media/add/document (other media type).
  2. Install ip_consumer_auth on a D9 site.
  3. Configure to allow JSON and your host's IPs for a whitelist.
  4. Attempt to upload media again
  5. See a 403 error in network inspector

Working (ip_consumer_auth not installed)

Not Working (ip_consumer_auth installed)

πŸ’¬ Support request
Status

Closed: duplicate

Version

9.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States superfluousapostrophe

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

Comments & Activities

Production build 0.71.5 2024