olech2412 / MensaHub

MensaHub is a multi-component project that manages and provides Mensa-related data and services. It supports the dispatch of a newsletter and offers further processing of the data by means of an interface.
GNU General Public License v3.0
2 stars 0 forks source link

XML Request Error Cross Origin #24

Closed whosFritz closed 1 year ago

whosFritz commented 1 year ago

when trying to login to auth/login the following error occurs.

related to https://github.com/whosFritz/Mensa-App/issues/118

Access to fetch at 'https://api.olech2412.de/essensGetter/auth/login' from origin 'http://127.0.0.1:5500' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

Access to XMLHttpRequest at 'https://api.olech2412.de/essensGetter/auth/login' from origin 'null' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

but it works in thunderbird extension WTF???

Maybe this will fix it.

https://stackoverflow.com/questions/35091524/spring-cors-no-access-control-allow-origin-header-is-present

the mensi-mates FQDN is: https://mensi-mates.whosfritz.de

whosFritz commented 1 year ago

Error still there /#/:1 Access to fetch at 'https://api.olech2412.de/essensGetter/auth/login' from origin 'https://mensi-mates.whosfritz.de' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

whosFritz commented 1 year ago

Ich bin so ein Arschloch lol. neue Version noch gar nicht online

Es tut mir so leid

whosFritz commented 1 year ago

But I wonder why we used brackets in the url during the first occurrence:

See PR #3

@CrossOrigin(origins={"https://mensiapp.000webhostapp.com"})

whosFritz commented 1 year ago

Dear MensaHub && MensiMates Community,

I am thrilled to announce a major breakthrough in our pursuit of excellence and innovation. Today, I am delighted to inform you that we have successfully resolved a crucial API issue, thanks to the effective collaboration between MensaHub and MensiMates.

As the CEO of MensiMates, it gives me immense pleasure to witness the incredible dedication and hard work of our teams. Our relentless pursuit of excellence has led us to overcome a significant hurdle that had been impeding our progress. This milestone achievement showcases the power of collaboration and the remarkable talents of our team members.

The API issue, which had been causing disruptions and delays in our services, has now been rectified. Through joint efforts, MensaHub and MensiMates were able to identify the root cause of the problem and develop an innovative solution that addresses it effectively. Our development teams worked tirelessly, leveraging their expertise and technical prowess to ensure a seamless integration between our platforms.

This resolution is a testament to our commitment to providing our users with the best possible experience. By eliminating the API issue, we have not only enhanced the performance and reliability of our services but also opened up new avenues for further development and expansion. We are now well-positioned to deliver an even more robust and efficient platform to our valued users.

I would like to express my deepest gratitude to the dedicated teams at MensaHub and MensiMates who worked tirelessly to address this issue. Their unwavering determination and exceptional problem-solving skills have played a pivotal role in this success. I am immensely proud of their achievements and I extend my heartfelt congratulations to each and every team member involved.

Furthermore, I would like to express my sincere appreciation to our loyal users and clients for their patience and understanding during this challenging period. Your support and feedback have been instrumental in driving us forward and ensuring that we meet and exceed your expectations.

As we move forward, we remain committed to delivering exceptional services and continuing our journey of innovation. We are excited about the possibilities that lie ahead and are confident that this resolution will pave the way for a brighter future for MensiMates.

Thank you once again for your continued trust and support.

Sincerely,

Fritz Schubert CEO, MensiMates

issue stays open for now. I will close it myself