Skip to content

Unable to set the cookies #29

@VenkyMadgundi

Description

@VenkyMadgundi

Hi
Configured my rails application in controller with following:
reverse_proxy api_path, verify_ssl: true, headers: { 'X-API-Key' => mykey }, cookies: cookies do |config|
config.on_missing do |code, response|
puts "Body:#{response.body.to_s} Code:#{code} cookies:#{cookies}"
end
end
When I am calling API through Postman with same credentials it is showing results, but when I called same API through my rails application it is showing following:

<title>403 Forbidden</title>



403 Forbidden





cloudflare

Can you share a code snippet for setting a cookies for reverse-proxy?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions