transmit icon indicating copy to clipboard operation
transmit copied to clipboard

Transmit issue with HTTPS call

Open Sancho66 opened this issue 1 year ago • 2 comments

Package version

1.0.2

Describe the bug

Hello guys,

When when I try to create a transmit instance like that with https baseUrl in the frontend :

transmitInstance = new Transmit({
            baseUrl: 'https://www.mydomain.com', 
            beforeSubscribe: (request) => {
                request.headers.append('Authorization', `Bearer ${authStore.token}`);
            }
        });

The backend doesn't return any response. When I have an http url (baseUrl) in local or deployed all work properly. I also checked my cors :

import { defineConfig } from '@adonisjs/cors'

/**
 * Configuration options to tweak the CORS policy. The following
 * options are documented on the official documentation website.
 *
 * https://docs.adonisjs.com/guides/security/cors
 */
const corsConfig = defineConfig({
  enabled: true,
  origin: true,
  methods: ['GET', 'HEAD', 'POST', 'PUT', 'DELETE'],
  headers: true,
  exposeHeaders: [],
  credentials: true,
  maxAge: 90,
})

export default corsConfig

I don't really know if it's linked with the https protocol...can you help us ?

Reproduction repo

No response

Sancho66 avatar Nov 08 '24 18:11 Sancho66

Hello ! Do your event request stays in a pending state ? If so, I seem to have the same problem, it happens occasionnally and I don't know why.

Dogson avatar Nov 22 '24 16:11 Dogson

Hey both! 👋🏻

Are you sure this is not linked to https://github.com/adonisjs/transmit/issues/31?

RomainLanz avatar Nov 26 '24 07:11 RomainLanz

Closing since no answer from issue reporter.

RomainLanz avatar Jun 27 '25 09:06 RomainLanz