4
ullebe1
4y

CORS errors on AWS API Gateway just might be the bane of my existence.

Comments
  • 3
    Did you whitelist your hosts?
  • 0
    The problem was that since I had chosen that my function should be used for 'any' HTTP keyword my custom authorizer lambda was run for OPTIONS requests as well, causing all prefetches to fail since they don't contain any Authorization header. By manually defining my endpoints for everything but OPTIONS i got it to work. Thanks for the advice though!
  • 2
    @highlight
    ["cors", "aws"].each {|x|
    puts "#{x} is the bane of my existence"
    }
  • 2
Add Comment