Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

403 Forbidden issue on Chrome but working on Firefox #197

Open
icycoolnss opened this issue Aug 29, 2022 · 4 comments
Open

403 Forbidden issue on Chrome but working on Firefox #197

icycoolnss opened this issue Aug 29, 2022 · 4 comments

Comments

@icycoolnss
Copy link

Task :run
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
HTTP/1.1 403 Forbidden [Content-Type: text/plain; charset=utf-8, X-Content-Type-Options: nosniff, X-Frame-Options: SAMEORIGIN, X-Xss-Protection: 0, Date: Mon, 29 Aug 2022 05:29:47 GMT, Content-Length: 135, Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"] [Content-Length: 135,Chunked: false]

BUILD SUCCESSFUL in 2s
2 actionable tasks: 1 executed, 1 up-to-date

@icycoolnss
Copy link
Author

Tried even without payload still no luck :(

@jcpearce
Copy link

jcpearce commented Apr 3, 2023

Same issue. Tried command line and java implementation. Same error. Tested all the same keys with node web-push and it works fine. Any ideas?

@jcpearce
Copy link

jcpearce commented Apr 3, 2023

Figured it out for chrome needed to encode as follows
pushService.send(notification, Encoding.AES128GCM);

@rpcabrera
Copy link

This happens also for IOs final devices. I tried to change the default encoding as @jcpearce mentioned, but continued receiving the same problem. Now, trying to reproduce the HTTP POST request over the Apple APN itself using the javascript variant result in a success push notification. Considering this, anyone detected a difference between the encryption on Java and Javascript?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants