Giter Club home page Giter Club logo

mod_cspnonce's People

Contributors

wyattoday avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

mod_cspnonce's Issues

Binary can't be used in Apache 2.2.29 on Windows

I have an old system running Apache 2.2.29 (Win64) on Windows Server 2012. The pre-compiled module will cause error while starting Apache. The message reads:
httpd: Syntax error on line 508 of D:/Apache/conf/httpd.conf: API module structure 'cspnonce_module' in file D:/Apache/modules/mod_cspnonce.so is garbled - expected signature 41503232 but saw 41503234 - perhaps this is not an Apache module DSO, or was compiled for a different Apache version?

What should I do? If I have to compile it by myself, is there any options I need to change?

Regards,
Gary

version 1.4 just returning error 500 in apache 2.4.18

Hello,

I just installed the mod_cspnonce 1.14 in Ubuntu server 16.04.07 LTS with apache 2.14.18 and apparently the cspnonce module cannot generate the nonce and makes the apache return error 500. How to solve this?
Thank you.

Works for main domain but not for subdomain

Hi,

The module always works fantastic for our main.domain, but now we deployed an admin panel on admin.main.domain and in html response it loads ...<script src="/js/app.bec01de2.js" nonce=""></script>.... instead of f.e. nonce=nonce-3uR3CIhP/fWxT3n/Tefw35rO which I can see in the header. Any idea what might be causing this strange behaviour?

Apache/2.4.54 (Ubuntu 22.04)
CSP deployed in main apache.conf file

Compilation error with apxs [Linux RHEL]

Hi,

Using apache 2.4 and have apxs installed.
upon compilation, we are seeing errors with TIME_UTC. Looking online it seems there have been some issues with this and MACOS, but we are using RedHat, so i would assume we wouldn't have issues with time.h

please see error from commandline.

image
Could you please assist
Thank You

CSP Nonce gives null value

I am getting null value for the CSP Nonce. Is any particular reason for that?

httpd version - Apache/2.4.6 (CentOS)
kernal version - 5.4.168-1.el7.elrepo.x86_64
os name and its version - CentOS Linux 7 (Core)

Errors using "apxs" on macOS

Hi there!

Thanks for this project, looks really nice.

I'm having issues building this module, I'm using XAMPP on macOS, so I run:

/Applications/XAMPP/xamppfiles/bin/apxs -ci /my/path/to/mod_cspnonce.c

And it returns some errors and warnings:

/my/path/to/mod_cspnonce.c:83:9: error:
      redefinition of 'r' with a different type: 'int' vs 'const request_rec *' (aka
      'const struct request_rec *')
    int r;
        ^
/my/path/to/mod_cspnonce.c:51:52: note: previous
      definition is here
const char * GenSecureCSPNonce(const request_rec * r)
                                                   ^
/my/path/to/mod_cspnonce.c:86:9: warning: implicit
      declaration of function 'timespec_get' is invalid in C99
      [-Wimplicit-function-declaration]
    if (timespec_get(&ts, TIME_UTC) == 0)
        ^
/my/path/to/mod_cspnonce.c:86:27: error: use of
      undeclared identifier 'TIME_UTC'
    if (timespec_get(&ts, TIME_UTC) == 0)
                          ^
/my/path/to/mod_cspnonce.c:94:7: warning:
      incompatible integer to pointer conversion assigning to 'const request_rec *'
      (aka 'const struct request_rec *') from 'long' [-Wint-conversion]
    r = random();
      ^ ~~~~~~~~
/my/path/to/mod_cspnonce.c:98:7: warning:
      incompatible integer to pointer conversion assigning to 'const request_rec *'
      (aka 'const struct request_rec *') from 'long' [-Wint-conversion]
    r = random();
      ^ ~~~~~~~~
/my/path/to/mod_cspnonce.c:103:7: warning:
      incompatible integer to pointer conversion assigning to 'const request_rec *'
      (aka 'const struct request_rec *') from 'long' [-Wint-conversion]
    r = random();
      ^ ~~~~~~~~
4 warnings and 2 errors generated.
apxs:Error: Command failed with rc=65536

Is there anything I'm missing here?

Hope this could be solved soon, and thanks again for this module!

Not really an issue about the code... but getting it enabled is a problem

Screenshot 2023-01-25 225409
ss
I'm having some issues enabling this within Plesk Obsidian running on Ubuntu 22.04.1 LTS. The option under Apache modules is there after compiling but when enabling it I get an error which I cant find any info anywhere on the internet, I'd really appreciate any tips on getting it working.

I get this error: Error: START httpd_modules_ctl --enable cspnonce -e Load file /etc/apache2/mods-available/cspnonce.load for a2enmod not found resource(s) deleted

I can see that the .so file is copied over but within /etc/apache2/mods-available/ there's no cspnonce.load, what could I have done wrong?

EDIT: If anyone else is new to this like me and having the same problem I figured it out an hour or so later, I just created a new file once I knew how the other apache modules looked. Using nano, just create a new file called cspnonce.load and paste LoadModule cspnonce_module /usr/lib/apache2/modules/mod_cspnonce.so and voila, it will work!

mod_cspnonce.so module for wamp not working

Hi,

As documented, I build the module using Visual Studio. When I included the generated mod_cspnonce.so file, Apache service didn't start. Any guess what went wrong?

Apache Version: 2.4.35
Wamp Version: 3.1.4

Regards
Ankit

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.